Merge "Unbreak CC screen"
This commit is contained in:
committed by
Android (Google) Code Review
commit
40e0f243c9
@@ -90,11 +90,11 @@ public abstract class ConfirmDeviceCredentialBaseFragment extends InstrumentedFr
|
|||||||
public void onAuthenticated() {
|
public void onAuthenticated() {
|
||||||
// Check whether we are still active.
|
// Check whether we are still active.
|
||||||
if (getActivity() != null && getActivity().isResumed()) {
|
if (getActivity() != null && getActivity().isResumed()) {
|
||||||
authenticationSucceeded(null /* password */);
|
authenticationSucceeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract void authenticationSucceeded(@Nullable String password);
|
protected abstract void authenticationSucceeded();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFingerprintIconVisibilityChanged(boolean visible) {
|
public void onFingerprintIconVisibilityChanged(boolean visible) {
|
||||||
|
@@ -169,8 +169,10 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void authenticationSucceeded(@Nullable String password) {
|
protected void authenticationSucceeded() {
|
||||||
// TODO: make this play nice with challenge
|
Intent intent = new Intent();
|
||||||
|
getActivity().setResult(RESULT_OK, intent);
|
||||||
|
getActivity().finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleNext() {
|
private void handleNext() {
|
||||||
|
@@ -232,8 +232,10 @@ public class ConfirmLockPattern extends ConfirmDeviceCredentialBaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void authenticationSucceeded(@Nullable String password) {
|
protected void authenticationSucceeded() {
|
||||||
// TODO: make this play nice with challenge
|
Intent intent = new Intent();
|
||||||
|
getActivity().setResult(Activity.RESULT_OK, intent);
|
||||||
|
getActivity().finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user