99keshav99 / CaptureSposed

Xposed module that effectively disables the newly introduced screenshot detection API in Android 14
GNU Affero General Public License v3.0
89 stars 5 forks source link

37 counter resets to 0 when system theme is switched #39

Closed 99keshav99 closed 1 month ago

99keshav99 commented 1 month ago

This PR addresses an issue where the counter.intValue was being reset to 0 every time the system theme was changed from light to dark or vice versa.

To fix this issue, we have used the savedInstanceState bundle to persist the value of counter across configuration changes like a theme switch. This bundle is used to save and restore the transient state of an activity when it may be killed and later recreated.

Files changed: