summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2010-10-05 08:54:32 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-05 08:54:32 -0700
commit6a5f4d8526944ad4189072543ec4cc3f6d638b6f (patch)
tree12f80b4138fa2e660e707d98d68f08acae2509ff
parent9d0812b2f6eaab15c4acf96cb5d0ae2870633957 (diff)
parent58f208892274c91b83dbbad6c50ea8638f106b33 (diff)
downloadandroid_packages_apps_Trebuchet-6a5f4d8526944ad4189072543ec4cc3f6d638b6f.tar.gz
android_packages_apps_Trebuchet-6a5f4d8526944ad4189072543ec4cc3f6d638b6f.tar.bz2
android_packages_apps_Trebuchet-6a5f4d8526944ad4189072543ec4cc3f6d638b6f.zip
Merge "Adding more specific title for pick-application dialog." into gingerbread
-rw-r--r--res/values/strings.xml2
-rw-r--r--src/com/android/launcher2/Launcher.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index f4dfffb0a..bae50e446 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -88,6 +88,8 @@
<!-- Title of dialog when user is selecting shortcut to add to homescreen -->
<string name="title_select_shortcut">Select shortcut</string>
+ <!-- Title of dialog when user is selecting an application to add to homescreen -->
+ <string name="title_select_application">Select application</string>
<!-- Title of dialog when user is selecting live folder to add to homescreen -->
<string name="title_select_live_folder">Select folder</string>
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 8c64af7de..9626a2ec2 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1234,6 +1234,7 @@ public final class Launcher extends Activity
Intent pickIntent = new Intent(Intent.ACTION_PICK_ACTIVITY);
pickIntent.putExtra(Intent.EXTRA_INTENT, mainIntent);
+ pickIntent.putExtra(Intent.EXTRA_TITLE, getText(R.string.title_select_application));
startActivityForResultSafely(pickIntent, REQUEST_PICK_APPLICATION);
} else {
startActivityForResultSafely(intent, REQUEST_CREATE_SHORTCUT);