Kill ConfirmDeviceCredentialBaseActivity when it is no longer visible

The problem is because ConfirmDeviceCredentialActivity is not created
again when the new intent is fired. Add no history flag to kill it once
it is not visible. We have the exclude from recent flag anyway, so
finishing it should be fine.

Bug: 27564634
Change-Id: I2e22f3d7a108f8fbad5f27894b1a92f19d25bcda
This commit is contained in:
Tony Mak
2016-03-18 12:20:28 +00:00
parent 297ce9aaf3
commit b7f1edd279

View File

@@ -246,6 +246,7 @@ public final class ChooseLockSettingsHelper {
// TODO: Remove once that bug is fixed.
if (intentSender != null || taskId != -1) {
outIntent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
outIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
}
}
}