diff options
-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(); |