Content description for image button on custom title bar.
This commit is contained in:
parent
92d170e633
commit
f42e6ed02b
2 changed files with 5 additions and 1 deletions
|
@ -44,6 +44,10 @@ public class CustomTitleBar {
|
||||||
vidw.init(activity.getWindow());
|
vidw.init(activity.getWindow());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setImgDescription(CharSequence text) {
|
||||||
|
activity.getWindow().getDecorView().findViewById(R.id.title_image).setContentDescription(text);
|
||||||
|
}
|
||||||
|
|
||||||
public static class CustomTitleBarView {
|
public static class CustomTitleBarView {
|
||||||
protected String titleString;
|
protected String titleString;
|
||||||
protected int titleImageRes;
|
protected int titleImageRes;
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
|
||||||
});
|
});
|
||||||
setContentView(R.layout.local_index);
|
setContentView(R.layout.local_index);
|
||||||
titleBar.afterSetContentView();
|
titleBar.afterSetContentView();
|
||||||
|
titleBar.setImgDescription(getString(R.string.local_index_download));
|
||||||
|
|
||||||
settings = getMyApplication().getSettings();
|
settings = getMyApplication().getSettings();
|
||||||
descriptionLoader = new LoadLocalIndexDescriptionTask();
|
descriptionLoader = new LoadLocalIndexDescriptionTask();
|
||||||
|
|
Loading…
Reference in a new issue