am a8f88798
: am d74a3603
: am 3977df03
: Merge "Don\'t launch ConfirmDeviceCredentials multiple times." into mnc-dev
* commit 'a8f8879895edd86fd206fc1a8d2d684e09fcc57f': Don't launch ConfirmDeviceCredentials multiple times.
This commit is contained in:
@@ -58,12 +58,15 @@ public class ConfirmDeviceCredentialActivity extends Activity {
|
||||
String title = intent.getStringExtra(KeyguardManager.EXTRA_TITLE);
|
||||
String details = intent.getStringExtra(KeyguardManager.EXTRA_DESCRIPTION);
|
||||
|
||||
ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(this);
|
||||
if (!helper.launchConfirmationActivity(0 /* request code */, null /* title */, title,
|
||||
details, false /* returnCredentials */, true /* isExternal */)) {
|
||||
Log.d(TAG, "No pattern, password or PIN set.");
|
||||
setResult(Activity.RESULT_OK);
|
||||
finish();
|
||||
// Ignore rotates and ensure we only launch this once
|
||||
if (savedInstanceState == null) {
|
||||
ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(this);
|
||||
if (!helper.launchConfirmationActivity(0 /* request code */, null /* title */, title,
|
||||
details, false /* returnCredentials */, true /* isExternal */)) {
|
||||
Log.d(TAG, "No pattern, password or PIN set.");
|
||||
setResult(Activity.RESULT_OK);
|
||||
finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user