OSDN Git Service

Fix multiple instances for Google SignIn activity appearing in task stack
authorJason Chiu <chiujason@google.com>
Thu, 16 May 2019 09:44:13 +0000 (17:44 +0800)
committerJason Chiu <chiujason@google.com>
Thu, 16 May 2019 09:50:46 +0000 (17:50 +0800)
commit3e4d00267908cfb549f22efd61e114df28e7bd21
tree8dce124088e5dee370d09645b6bf5e4597bd0a83
parentd6ad2a33402e567371d27c6846dcccc75b3a6029
Fix multiple instances for Google SignIn activity appearing in task stack

- Account page starts an activity with the flag FLAG_ACTIVITY_NEW_TASK
  to add an account and then causes multiple activity instances.
- Add the flag FLAG_ACTIVITY_CLEAR_TASK in conjunction with
  FLAG_ACTIVITY_NEW_TASK to clear existing task before the activity is
  started.

Fixes: 109923099
Test: robotest, manual
Change-Id: I8234ab33d8aa949e5ff78320962920cb0f8b2953
src/com/android/settings/accounts/AddAccountSettings.java