Cherish: use a new task stack for app lock fragments

* fixes fragments staying in recents on going home
* also made other preferences do binder calls asynchronously

Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
jhonboy121
2022-09-27 23:09:10 +05:30
committed by Hưng Phan
parent 7e7aa11228
commit 4aedefa4d7
8 changed files with 141 additions and 42 deletions

View File

@@ -31,13 +31,20 @@
android:summary="@string/laboratory_ignore_window_secure_summary"
android:defaultValue="false"/>
<!-- Smart Charging -->
<!-- Smart Charging -->
<Preference
android:key="smart_charging"
android:title="@string/smart_charging_title"
android:summary="@string/smart_charging_summary"
android:fragment="com.cherish.settings.fragments.SmartCharging"/>
<Preference
android:key="app_lock"
android:title="@string/app_lock_title"
android:summary="@string/app_lock_summary"
android:fragment="com.cherish.settings.security.applock.AppLockSettingsFragment"
settings:controller="com.cherish.settings.security.applock.AppLockSettingsPreferenceController" />
<!-- Unlock FPS for specific games -->
<SwitchPreference
android:key="use_games_spoof"