diff options
author | Michael Kolb <kolby@google.com> | 2011-11-17 16:03:59 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-11-17 16:03:59 -0800 |
commit | e1a4c09820e9ae85a8a5559cb99ffdae2f51fd00 (patch) | |
tree | c023364dc49c8d06edc6efcf04714a9392cb94b6 | |
parent | 39bbf2e07ce6f934588de1890385d706a1adc3be (diff) | |
parent | a9a5967ea18d4b442ae5433cd3759b3921e480ad (diff) | |
download | packages_apps_browser-e1a4c09820e9ae85a8a5559cb99ffdae2f51fd00.zip packages_apps_browser-e1a4c09820e9ae85a8a5559cb99ffdae2f51fd00.tar.gz packages_apps_browser-e1a4c09820e9ae85a8a5559cb99ffdae2f51fd00.tar.bz2 |
am a9a5967e: Add content description to screenshots in tab manager
* commit 'a9a5967ea18d4b442ae5433cd3759b3921e480ad':
Add content description to screenshots in tab manager
-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; |