incognito mode added for large screens
Change-Id: I8a3b479acc50c7e658e5d24e83ccf9256f4bf592
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java
index 6fc919e..3d8a44f 100644
--- a/src/com/android/browser/TabBar.java
+++ b/src/com/android/browser/TabBar.java
@@ -209,6 +209,7 @@
TabViewData mTabData;
View mTabContent;
TextView mTitle;
+ View mIncognito;
ImageView mIconView;
ImageView mLock;
ImageView mClose;
@@ -231,6 +232,7 @@
mLock = (ImageView) mTabContent.findViewById(R.id.lock);
mClose = (ImageView) mTabContent.findViewById(R.id.close);
mClose.setOnClickListener(this);
+ mIncognito = mTabContent.findViewById(R.id.incognito);
mSelected = false;
mInLoad = false;
// update the status
@@ -259,6 +261,11 @@
if (mTabData.mLock != null) {
setLock(mTabData.mLock);
}
+ if (mTabData.mTab != null) {
+ mIncognito.setVisibility(
+ mTabData.mTab.getWebView().isPrivateBrowsingEnabled() ?
+ View.VISIBLE : View.GONE);
+ }
}
@Override