Unbreak CC screen

Re-add logic in authenticationSucceeded

Change-Id: Iac1925f5e2f2f67dd5d7c7f5d454f32691d51b61
This commit is contained in:
Andres Morales
2015-04-16 16:30:31 -07:00
parent a928ff4a67
commit 59f5976e15
3 changed files with 10 additions and 6 deletions

View File

@@ -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) {

View File

@@ -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() {

View File

@@ -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