From f90682f4fb645ff45cbabcc0e7c3c26dc3cce599 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Thu, 16 Jul 2009 15:06:44 -0700 Subject: [PATCH] Give an icon to Settings shortcuts. --- src/com/android/settings/CreateShortcut.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/settings/CreateShortcut.java b/src/com/android/settings/CreateShortcut.java index b2dcee26135..2ead31bd6eb 100644 --- a/src/com/android/settings/CreateShortcut.java +++ b/src/com/android/settings/CreateShortcut.java @@ -17,6 +17,8 @@ public class CreateShortcut extends LauncherActivity { Intent shortcutIntent = intentForPosition(position); shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); Intent intent = new Intent(); + intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, + Intent.ShortcutIconResource.fromContext(this, R.drawable.ic_launcher_settings)); intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, itemForPosition(position).label); setResult(RESULT_OK, intent);