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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user