mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779448 - add contentDescription to the Go button, r=blassey
This commit is contained in:
parent
7cb14fb1ca
commit
f570b042cb
@ -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) {
|
||||
|
@ -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">
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user