diff options
author | jrizzoli <joey@cyanogenmoditalia.it> | 2016-01-24 21:06:30 +0100 |
---|---|---|
committer | jrizzoli <joey@cyanogenmoditalia.it> | 2016-01-25 12:32:08 +0100 |
commit | 3f57be003e868c97d9fc8a8a6a225c887dc8b383 (patch) | |
tree | d37f3361bfb2ef6cb84037d4b9d30e48188e2ca8 /src/com/android/browser/NavigationBarTablet.java | |
parent | dd54cda1faac62396cd790c72812f1c07e6efc31 (diff) | |
download | android_packages_apps_Gello-3f57be003e868c97d9fc8a8a6a225c887dc8b383.tar.gz android_packages_apps_Gello-3f57be003e868c97d9fc8a8a6a225c887dc8b383.tar.bz2 android_packages_apps_Gello-3f57be003e868c97d9fc8a8a6a225c887dc8b383.zip |
Gello: fix tablet navbar UI
Change-Id: I4a772a6c2992aea1b1b09a00fb9945d73e9c0e7a
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
Diffstat (limited to 'src/com/android/browser/NavigationBarTablet.java')
-rw-r--r-- | src/com/android/browser/NavigationBarTablet.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java index ce482d94..d2d63b3c 100644 --- a/src/com/android/browser/NavigationBarTablet.java +++ b/src/com/android/browser/NavigationBarTablet.java @@ -33,8 +33,6 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe private ImageButton mBackButton; private ImageButton mForwardButton; private ImageView mStar; - private ImageView mSearchButton; - private View mAllButton; private View mNavButtons; private boolean mHideNavButtons; @@ -60,18 +58,14 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe @Override protected void onFinishInflate() { super.onFinishInflate(); - mAllButton = findViewById(R.id.all_btn); mNavButtons = findViewById(R.id.navbuttons); mBackButton = (ImageButton) findViewById(R.id.back); mForwardButton = (ImageButton) findViewById(R.id.forward); mStar = (ImageView) findViewById(R.id.star); - mSearchButton = (ImageView) findViewById(R.id.search); mUrlContainer = findViewById(R.id.urlbar_focused); mBackButton.setOnClickListener(this); mForwardButton.setOnClickListener(this); mStar.setOnClickListener(this); - mAllButton.setOnClickListener(this); - mSearchButton.setOnClickListener(this); mUrlInput.setContainer(mUrlContainer); mUrlInput.setStateListener(this); } @@ -124,10 +118,6 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe if (intent != null) { getContext().startActivity(intent); } - } else if (mAllButton == v) { - mUiController.bookmarksOrHistoryPicker(ComboViews.Bookmarks); - } else if (mSearchButton == v) { - mBaseUi.editUrl(true, true); } else { super.onClick(v); } @@ -140,14 +130,12 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe if (mHideNavButtons) { hideNavButtons(); } - mSearchButton.setVisibility(View.GONE); mStar.setVisibility(View.GONE); } else { if (mHideNavButtons) { showNavButtons(); } showHideStar(mUiController.getCurrentTab()); - mSearchButton.setVisibility(View.VISIBLE); } } |