Merge "Fix crash when removing fingerprint" into mnc-dev
This commit is contained in:
@@ -761,7 +761,7 @@
|
||||
<string name="security_settings_fingerprint_enroll_onboard_message">To use your fingerprint to unlock your screen or confirm purchases, you\u2019ll need to:</string>
|
||||
<!-- Introduction message shown in fingerprint enrollment dialog, first item to describe what
|
||||
the user needs to do. -->
|
||||
<string name="security_settings_fingerprint_enroll_onboard_message_1">Setup your backup screen lock method</string>
|
||||
<string name="security_settings_fingerprint_enroll_onboard_message_1">Set up your backup screen lock method</string>
|
||||
<!-- Introduction message shown in fingerprint enrollment dialog, second item to describe what
|
||||
the user needs to do. -->
|
||||
<string name="security_settings_fingerprint_enroll_onboard_message_2">Add your fingerprint</string>
|
||||
@@ -791,7 +791,7 @@
|
||||
<!-- Message shown in fingerprint enrollment dialog once enrollment is completed -->
|
||||
<string name="security_settings_fingerprint_enroll_finish_message">Whenever you see this icon, you can use your fingerprint for identification or to authorize a purchase.</string>
|
||||
<!-- Button text to setup screen lock in onboard dialog [CHAR LIMIT=34] -->
|
||||
<string name="security_settings_fingerprint_enroll_setup_screen_lock">Setup screen lock</string>
|
||||
<string name="security_settings_fingerprint_enroll_setup_screen_lock">Set up screen lock</string>
|
||||
<!-- Button text to exit fingerprint wizard after everything is done [CHAR LIMIT=15] -->
|
||||
<string name="security_settings_fingerprint_enroll_done">Done</string>
|
||||
<!-- Dialog title for dialog which shows when user touches the icon on the screen, instead of the sensor at the back [CHAR LIMIT=45] -->
|
||||
|
@@ -259,9 +259,9 @@ public class FingerprintSettings extends SubSettings {
|
||||
|
||||
protected void removeFingerprintPreference(int fingerprintId) {
|
||||
String name = genKey(fingerprintId);
|
||||
Preference prefToRemove = mManageCategory.findPreference(name);
|
||||
Preference prefToRemove = findPreference(name);
|
||||
if (prefToRemove != null) {
|
||||
if (!mManageCategory.removePreference(prefToRemove)) {
|
||||
if (!getPreferenceScreen().removePreference(prefToRemove)) {
|
||||
Log.w(TAG, "Failed to remove preference with key " + name);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user