Merge "Fix SIM PIN listener registration" into qt-dev
This commit is contained in:
@@ -135,7 +135,6 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Sending empty PIN here to query the number of remaining PIN attempts
|
// Sending empty PIN here to query the number of remaining PIN attempts
|
||||||
new CheckSimPin("", mSubId) {
|
new CheckSimPin("", mSubId) {
|
||||||
void onSimCheckResponse(final int result, final int attemptsRemaining) {
|
void onSimCheckResponse(final int result, final int attemptsRemaining) {
|
||||||
@@ -216,22 +215,17 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onAttachedToWindow() {
|
public void showUsabilityHint() {
|
||||||
super.onAttachedToWindow();
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResume(int reason) {
|
||||||
|
super.onResume(reason);
|
||||||
KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mUpdateMonitorCallback);
|
KeyguardUpdateMonitor.getInstance(mContext).registerCallback(mUpdateMonitorCallback);
|
||||||
resetState();
|
resetState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onDetachedFromWindow() {
|
|
||||||
super.onDetachedFromWindow();
|
|
||||||
KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateMonitorCallback);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void showUsabilityHint() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPause() {
|
public void onPause() {
|
||||||
// dismiss the dialog.
|
// dismiss the dialog.
|
||||||
@@ -239,6 +233,7 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView {
|
|||||||
mSimUnlockProgressDialog.dismiss();
|
mSimUnlockProgressDialog.dismiss();
|
||||||
mSimUnlockProgressDialog = null;
|
mSimUnlockProgressDialog = null;
|
||||||
}
|
}
|
||||||
|
KeyguardUpdateMonitor.getInstance(mContext).removeCallback(mUpdateMonitorCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user