diff options
author | Michael Kolb <kolby@google.com> | 2011-11-17 12:50:10 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-11-17 12:50:10 -0800 |
commit | a9a5967ea18d4b442ae5433cd3759b3921e480ad (patch) | |
tree | c023364dc49c8d06edc6efcf04714a9392cb94b6 /src/com/android/browser | |
parent | 4eb312faf9d7850dee4a1f10a41b343a4c923c03 (diff) | |
download | packages_apps_browser-a9a5967ea18d4b442ae5433cd3759b3921e480ad.zip packages_apps_browser-a9a5967ea18d4b442ae5433cd3759b3921e480ad.tar.gz packages_apps_browser-a9a5967ea18d4b442ae5433cd3759b3921e480ad.tar.bz2 |
Add content description to screenshots in tab manager
Bug: 5619945
Change-Id: I26dc592334dbbd6878887408153249d68046001b
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/NavTabView.java | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/com/android/browser/NavTabView.java b/src/com/android/browser/NavTabView.java index 4eec702..b15e828 100644 --- a/src/com/android/browser/NavTabView.java +++ b/src/com/android/browser/NavTabView.java @@ -74,11 +74,6 @@ public class NavTabView extends LinearLayout { return v == mImage; } - protected void setHighlighted(boolean highlighted) { - if (highlighted == mHighlighted) return; - mHighlighted = highlighted; - } - private void setTitle() { if (mTab == null) return; if (mHighlighted) { @@ -112,23 +107,18 @@ public class NavTabView extends LinearLayout { return mHighlighted; } - protected void setWebView(WebView w) { - mContent.addView(w, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); - } - protected void setWebView(Tab tab) { mTab = tab; setTitle(); Bitmap image = tab.getScreenshot(); if (image != null) { mImage.setImageBitmap(image); + if (tab != null) { + mImage.setContentDescription(tab.getTitle()); + } } } - protected void hideTitle() { - mTitleBar.setVisibility(View.INVISIBLE); - } - @Override public void setOnClickListener(OnClickListener listener) { mClickListener = listener; |