diff options
author | Kenny Root <kroot@google.com> | 2011-02-15 15:05:39 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-02-15 15:09:19 -0800 |
commit | 38199c5efdb4e650b0ffbe873d8cf27c35f51db6 (patch) | |
tree | 2363b771b5221318a4d0750c250021f10a72d161 /src/com/android/packageinstaller/PackageInstallerActivity.java | |
parent | 8b27e94b6a2c14065b0f92a1279c09555eda73d9 (diff) | |
download | packages_apps_packageinstaller-38199c5efdb4e650b0ffbe873d8cf27c35f51db6.zip packages_apps_packageinstaller-38199c5efdb4e650b0ffbe873d8cf27c35f51db6.tar.gz packages_apps_packageinstaller-38199c5efdb4e650b0ffbe873d8cf27c35f51db6.tar.bz2 |
Use NEW_TASK flag when going to Settings
Users being directed into Settings because of some problem were getting
the Settings activity on the PackageInstaller stack. This caused some
confusion because going into PackageInstaller again put them into
Settings which is wrong.
Bug: 3456307
Change-Id: Idda1e02a619950dbc4db81c4962a3257f67094b2
Diffstat (limited to 'src/com/android/packageinstaller/PackageInstallerActivity.java')
-rw-r--r-- | src/com/android/packageinstaller/PackageInstallerActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java index d49f2b2..23b87a6 100644 --- a/src/com/android/packageinstaller/PackageInstallerActivity.java +++ b/src/com/android/packageinstaller/PackageInstallerActivity.java @@ -164,6 +164,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen public void onClick(DialogInterface dialog, int which) { //launch manage applications Intent intent = new Intent("android.intent.action.MANAGE_PACKAGE_STORAGE"); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); finish(); } @@ -198,6 +199,7 @@ public class PackageInstallerActivity extends Activity implements OnCancelListen private void launchSettingsAppAndFinish() { //Create an intent to launch SettingsTwo activity Intent launchSettingsIntent = new Intent(Settings.ACTION_APPLICATION_SETTINGS); + launchSettingsIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(launchSettingsIntent); finish(); } |