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

Modify PrefsUtils to use LiveData for storing Hook State #25

Closed DavidBerdik closed 1 month ago

DavidBerdik commented 1 month ago

This PR modifies PrefUtils to use LiveData for storing the hook state.

Additionally, a function getHookActiveAsLiveData() has been added. This function is currently unused, however, it will be needed later for setting up the listener for updating the in-app toggle switch reflecting the hook state.

This PR does not introduce any user-facing changes to the app.