diff options
author | Michael Kolb <kolby@google.com> | 2011-11-18 02:37:24 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-18 02:37:24 -0800 |
commit | 104c015fe44f2e546c9f3f2bc7f60cf91aeec011 (patch) | |
tree | 16edfdd9da35cea3f083b82502f3a23b0a1baa0f /src/com/android/browser | |
parent | 7501bf46d2ab8d427449f2b24caad38c86076c10 (diff) | |
parent | a9a5967ea18d4b442ae5433cd3759b3921e480ad (diff) | |
download | packages_apps_browser-104c015fe44f2e546c9f3f2bc7f60cf91aeec011.zip packages_apps_browser-104c015fe44f2e546c9f3f2bc7f60cf91aeec011.tar.gz packages_apps_browser-104c015fe44f2e546c9f3f2bc7f60cf91aeec011.tar.bz2 |
am a9a5967e: Add content description to screenshots in tab manager
* commit 'a9a5967ea18d4b442ae5433cd3759b3921e480ad':
Add content description to screenshots in tab manager
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; |