diff options
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 7e9d12cd6..d9fbba253 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -22,6 +22,8 @@ <skip /> <!-- Application name --> <string name="application_name">Launcher</string> + <!-- Accessibility-facing application name --> + <string name="home">Home</string> <!-- Name for all applications running as this uid. --> <string name="uid_name">Android Core Apps</string> <!-- Default folder name --> diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 967254b8b..028a4515a 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -105,6 +105,7 @@ import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; +import java.util.List; import java.util.Set; /** @@ -2890,6 +2891,15 @@ public final class Launcher extends Activity updateTextButtonWithDrawable(R.id.market_button, d); } + @Override + public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { + boolean result = super.dispatchPopulateAccessibilityEvent(event); + final List<CharSequence> text = event.getText(); + text.clear(); + text.add(getString(R.string.home)); + return result; + } + /** * Receives notifications when system dialogs are to be closed. */ |