Merge "Unbreak CC screen"

This commit is contained in:
Andres Morales
2015-04-17 19:42:52 +00:00
committed by Android (Google) Code Review
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