summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser')
-rw-r--r--src/com/android/browser/NavTabView.java16
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;