diff options
author | John Reck <jreck@google.com> | 2011-08-16 16:10:51 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-08-16 17:32:54 -0700 |
commit | 419f6b4136a8fac758e2159f223700b1dfcc20e2 (patch) | |
tree | b1b1f12952218437a30b8caddecb2c4c83aa8b39 /src/com/android/browser/NavigationBarPhone.java | |
parent | b157656253f19b450cc6f77801791568b1d9f765 (diff) | |
download | packages_apps_Browser-419f6b4136a8fac758e2159f223700b1dfcc20e2.zip packages_apps_Browser-419f6b4136a8fac758e2159f223700b1dfcc20e2.tar.gz packages_apps_Browser-419f6b4136a8fac758e2159f223700b1dfcc20e2.tar.bz2 |
Show incognito and saved page icons in urlbar
Bug: 5162768
Change-Id: I02e521bd4c9de62166e3029437b105e669902797
Diffstat (limited to 'src/com/android/browser/NavigationBarPhone.java')
-rw-r--r-- | src/com/android/browser/NavigationBarPhone.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/browser/NavigationBarPhone.java b/src/com/android/browser/NavigationBarPhone.java index 0cb0764..ff7dc7c 100644 --- a/src/com/android/browser/NavigationBarPhone.java +++ b/src/com/android/browser/NavigationBarPhone.java @@ -47,6 +47,7 @@ public class NavigationBarPhone extends NavigationBarBase implements private PopupMenu mPopupMenu; private boolean mOverflowMenuShowing; private boolean mNeedsMenu; + private View mIncognitoIcon; public NavigationBarPhone(Context context) { super(context); @@ -84,6 +85,7 @@ public class NavigationBarPhone extends NavigationBarBase implements mUrlInput.setContainer(this); mUrlInput.setStateListener(this); mNeedsMenu = !ViewConfiguration.get(getContext()).hasPermanentMenuKey(); + mIncognitoIcon = findViewById(R.id.incognito_icon); } @Override @@ -240,4 +242,12 @@ public class NavigationBarPhone extends NavigationBarBase implements break; } } + + @Override + public void onTabDataChanged(Tab tab) { + super.onTabDataChanged(tab); + mIncognitoIcon.setVisibility(tab.isPrivateBrowsingEnabled() + ? View.VISIBLE : View.GONE); + } + } |