Merge "Don't crash if we get a onRemove() callback from Fingerprint" into oc-dev am: b8aaaf82a2
am: 9e6345e1b9
Change-Id: I99c343a6f5dc1e7040d154ad19628cc5777544f5
This commit is contained in:
@@ -360,6 +360,8 @@ public class FingerprintSettings extends SubSettings {
|
||||
}
|
||||
|
||||
private void updateAddPreference() {
|
||||
if (getActivity() == null) return; // Activity went away
|
||||
|
||||
/* Disable preference if too many fingerprints added */
|
||||
final int max = getContext().getResources().getInteger(
|
||||
com.android.internal.R.integer.config_fingerprintMaxTemplatesPerUser);
|
||||
|
Reference in New Issue
Block a user