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