* commit '52aca96c0bd1a52aab3e42c08b10fed7c5763773': Fix crash in fingerprint settings when rotating
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user