diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-09-04 11:42:28 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-09-08 20:43:16 +0000 |
commit | 8c543276f1dd366bd142ce44a8e3084fddb22971 (patch) | |
tree | 5750755a70ceac05cac45ad52b53e865a6ba7b1e /src/com/android/settings/fingerprint | |
parent | f1a62026b83b54b5f234cd87df66fa32f754c914 (diff) | |
download | packages_apps_Settings-8c543276f1dd366bd142ce44a8e3084fddb22971.zip packages_apps_Settings-8c543276f1dd366bd142ce44a8e3084fddb22971.tar.gz packages_apps_Settings-8c543276f1dd366bd142ce44a8e3084fddb22971.tar.bz2 |
Fix crash in fingerprint settings when rotating
Fragments always need empty constructors.
Bug: 23806551
Change-Id: Ib22a89be60f799d70caf1acf2ac95a20e6be9675
Diffstat (limited to 'src/com/android/settings/fingerprint')
-rw-r--r-- | src/com/android/settings/fingerprint/FingerprintSettings.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/settings/fingerprint/FingerprintSettings.java b/src/com/android/settings/fingerprint/FingerprintSettings.java index 43c1e76..d9ec38d 100644 --- a/src/com/android/settings/fingerprint/FingerprintSettings.java +++ b/src/com/android/settings/fingerprint/FingerprintSettings.java @@ -528,7 +528,6 @@ public class FingerprintSettings extends SubSettings { public static class RenameDeleteDialog extends DialogFragment { - private final Context mContext; private Fingerprint mFp; private EditText mDialogTextField; private String mFingerName; @@ -536,10 +535,6 @@ public class FingerprintSettings extends SubSettings { private int mTextSelectionStart; private int mTextSelectionEnd; - public RenameDeleteDialog(Context context) { - mContext = context; - } - @Override public Dialog onCreateDialog(Bundle savedInstanceState) { mFp = getArguments().getParcelable("fingerprint"); @@ -562,7 +557,7 @@ public class FingerprintSettings extends SubSettings { if (DEBUG) { Log.v(TAG, "rename " + name + " to " + newName); } - MetricsLogger.action(mContext, + MetricsLogger.action(getContext(), MetricsLogger.ACTION_FINGERPRINT_RENAME, mFp.getFingerId()); FingerprintSettingsFragment parent @@ -607,7 +602,7 @@ public class FingerprintSettings extends SubSettings { private void onDeleteClick(DialogInterface dialog) { if (DEBUG) Log.v(TAG, "Removing fpId=" + mFp.getFingerId()); - MetricsLogger.action(mContext, MetricsLogger.ACTION_FINGERPRINT_DELETE, + MetricsLogger.action(getContext(), MetricsLogger.ACTION_FINGERPRINT_DELETE, mFp.getFingerId()); FingerprintSettingsFragment parent = (FingerprintSettingsFragment) getTargetFragment(); |