Content description for image button on custom title bar.

This commit is contained in:
Igor B. Poretsky 2013-03-03 13:09:37 +04:00
parent 92d170e633
commit f42e6ed02b
2 changed files with 5 additions and 1 deletions

View file

@ -44,6 +44,10 @@ public class CustomTitleBar {
vidw.init(activity.getWindow());
}
public void setImgDescription(CharSequence text) {
activity.getWindow().getDecorView().findViewById(R.id.title_image).setContentDescription(text);
}
public static class CustomTitleBarView {
protected String titleString;
protected int titleImageRes;

View file

@ -88,7 +88,7 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
});
setContentView(R.layout.local_index);
titleBar.afterSetContentView();
titleBar.setImgDescription(getString(R.string.local_index_download));
settings = getMyApplication().getSettings();
descriptionLoader = new LoadLocalIndexDescriptionTask();