Bug 779448 - add contentDescription to the Go button, r=blassey

This commit is contained in:
Marco Zehe 2012-08-09 18:26:43 +02:00
parent 7cb14fb1ca
commit f570b042cb
3 changed files with 7 additions and 0 deletions

View File

@ -319,12 +319,15 @@ public class AwesomeBar extends GeckoActivity {
mGoButton.setVisibility(View.VISIBLE);
int imageResource = R.drawable.ic_awesomebar_go;
String contentDescription = getString(R.string.go);
int imeAction = EditorInfo.IME_ACTION_GO;
if (isSearchUrl(text)) {
imageResource = R.drawable.ic_awesomebar_search;
contentDescription = getString(R.string.search);
imeAction = EditorInfo.IME_ACTION_SEARCH;
}
mGoButton.setImageResource(imageResource);
mGoButton.setContentDescription(contentDescription);
int actionBits = mText.getImeOptions() & EditorInfo.IME_MASK_ACTION;
if (actionBits != imeAction) {

View File

@ -45,6 +45,8 @@
<!ENTITY history_week_section "7 days ago">
<!ENTITY history_older_section "Older than 7 days">
<!ENTITY go "Go">
<!ENTITY search "Search">
<!ENTITY reload "Reload">
<!ENTITY forward "Forward">
<!ENTITY menu "Menu">

View File

@ -105,6 +105,8 @@
<string name="pref_private_data_siteSettings">&pref_private_data_siteSettings;</string>
<string name="pref_import_android">&pref_import_android;</string>
<string name="go">&go;</string>
<string name="search">&search;</string>
<string name="reload">&reload;</string>
<string name="forward">&forward;</string>
<string name="menu">&menu;</string>