diff options
author | Adam Powell <adamp@google.com> | 2012-07-18 18:20:29 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2012-07-19 11:24:47 -0700 |
commit | 0fc5b2bea09a6d320884c5b12577caf426f547c1 (patch) | |
tree | b6614d64033a577134faaf1fbdc8db40ef88a5d6 /core/java/com | |
parent | d2299ca8a28d1185d1dddd1d4832813484276c14 (diff) | |
download | frameworks_base-0fc5b2bea09a6d320884c5b12577caf426f547c1.zip frameworks_base-0fc5b2bea09a6d320884c5b12577caf426f547c1.tar.gz frameworks_base-0fc5b2bea09a6d320884c5b12577caf426f547c1.tar.bz2 |
Fun with Up navigation
For activities with a null taskAffinity, simply finish the current task.
(They probably shouldn't have specified a parentActivityName anyway.)
When launching into app info from ResolverActivity, launch the app info
page in the current task with FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. Back
will return to the resolver, and Up will jump to Settings.
When launching into app info from RecentsPanelView or BaseStatusBar,
since this is a system affordance akin to notifications or widgets,
build the full task stack for the app info activity with
TaskStackBuilder and launch it as a new task.
Change-Id: I73b1941d0f52bd8b30382b5e17edd8ceb058c70d
Diffstat (limited to 'core/java/com')
-rw-r--r-- | core/java/com/android/internal/app/ResolverActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java index 7334ac3..0d9f7bc 100644 --- a/core/java/com/android/internal/app/ResolverActivity.java +++ b/core/java/com/android/internal/app/ResolverActivity.java @@ -371,7 +371,8 @@ public class ResolverActivity extends AlertActivity implements AdapterView.OnIte void showAppDetails(ResolveInfo ri) { Intent in = new Intent().setAction("android.settings.APPLICATION_DETAILS_SETTINGS") - .setData(Uri.fromParts("package", ri.activityInfo.packageName, null)); + .setData(Uri.fromParts("package", ri.activityInfo.packageName, null)) + .addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); startActivity(in); } |