diff options
author | Romain Guy <romainguy@android.com> | 2009-07-16 15:06:44 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-07-16 15:06:44 -0700 |
commit | f90682f4fb645ff45cbabcc0e7c3c26dc3cce599 (patch) | |
tree | 0b5e4215e96b6e3532fa4370fe040a6ee1bc8a22 /src/com | |
parent | c3eaaad17ebe9a2cbe34b096511c8f06369dadd1 (diff) | |
download | packages_apps_settings-f90682f4fb645ff45cbabcc0e7c3c26dc3cce599.zip packages_apps_settings-f90682f4fb645ff45cbabcc0e7c3c26dc3cce599.tar.gz packages_apps_settings-f90682f4fb645ff45cbabcc0e7c3c26dc3cce599.tar.bz2 |
Give an icon to Settings shortcuts.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/CreateShortcut.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/CreateShortcut.java b/src/com/android/settings/CreateShortcut.java index b2dcee2..2ead31b 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); |