Say "Home" instead of "Launcher" in TalkBack mode
Change-Id: Iec9036d693913967009696c1c90825bee8b7d9c6
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user