Revert "Cherish: Screen Off FOD (2/2)"

This reverts commit fcd07ad550.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Hưng Phan
2021-06-26 14:54:24 +07:00
parent 6b4bf42ed3
commit 79da3af2bf
3 changed files with 0 additions and 16 deletions

View File

@@ -1136,8 +1136,6 @@
<!-- Screen off fod -->
<string name="lockscreen_fod_category">Fingerprint On Display</string>
<string name="fod_category_summary">Configure FOD View</string>
<string name="fod_gesture_title">Screen off FOD</string>
<string name="fod_gesture_summary">Allows unlocking the device without having to wake up the screen first</string>
<!-- FOD animations -->
<string name="fod_recog_animation">Fingerprint animation</string>

View File

@@ -66,10 +66,4 @@
android:entryValues="@array/fod_pressed_color_values"
android:defaultValue="0" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="fod_gesture"
android:title="@string/fod_gesture_title"
android:summary="@string/fod_gesture_summary"
android:defaultValue="false" />
</PreferenceScreen>

View File

@@ -71,14 +71,6 @@ public class FODSettings extends SettingsPreferenceFragment implements
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.fod_settings);
PreferenceScreen prefScreen = getPreferenceScreen();
boolean enableScreenOffFOD = getContext().getResources().
getBoolean(com.android.internal.R.bool.config_needCustomFODView);
Preference ScreenOffFODPref = (Preference) findPreference("fod_gesture");
if (!enableScreenOffFOD){
prefScreen.removePreference(ScreenOffFODPref);
}
}
public boolean onPreferenceChange(Preference preference, Object newValue) {