diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-12-05 17:42:41 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-12-05 17:42:41 -0800 |
commit | f5b8671c340f189c50b41c53622f979b6d5e0a57 (patch) | |
tree | fe81dca6cd70d011c62a036b3fc0f940cc71bf23 /packages/SettingsProvider | |
parent | 003c15d72ccd3856d5abfe6d66a2a40d0eca85bc (diff) | |
download | frameworks_base-f5b8671c340f189c50b41c53622f979b6d5e0a57.zip frameworks_base-f5b8671c340f189c50b41c53622f979b6d5e0a57.tar.gz frameworks_base-f5b8671c340f189c50b41c53622f979b6d5e0a57.tar.bz2 |
Fix issue #5714517: App shortcuts can result in bad task intents
New API to let you build an Intent whose base configuration is correct,
but has an additional "selector" to pick out the specific app that you
would like launched.
Change-Id: Ide9db6dc60e2844b7696cfe09b28337fe7dd63db
Diffstat (limited to 'packages/SettingsProvider')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index 080d345..ac2369a 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -1151,8 +1151,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { intent.setComponent(cn); title = info.loadLabel(packageManager).toString(); } else if (category != null) { - intent = new Intent(Intent.ACTION_MAIN, null); - intent.addCategory(category); + intent = Intent.makeMainSelectorActivity(Intent.ACTION_MAIN, category); title = ""; } else { Log.w(TAG, "Unable to add bookmark for shortcut " + shortcutStr |