diff options
author | Veeti Paananen <veeti.paananen@rojekti.fi> | 2014-01-17 16:14:47 +0200 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 13:57:29 -0800 |
commit | 637f02be8353ea9991d80790d7bb4dc17f5c692a (patch) | |
tree | 3df2f197b459fcc39a454682d12aa12f5bef3895 | |
parent | ec090f9c44460676cc5760c309cbee0eba92de9a (diff) | |
download | packages_apps_browser-637f02be8353ea9991d80790d7bb4dc17f5c692a.zip packages_apps_browser-637f02be8353ea9991d80790d7bb4dc17f5c692a.tar.gz packages_apps_browser-637f02be8353ea9991d80790d7bb4dc17f5c692a.tar.bz2 |
Always show the action bar overflow
As with native action bars.
Change-Id: I460ee02b370d7f220a8702d2e7644a7c775e3b21
-rw-r--r-- | src/com/android/browser/NavScreen.java | 5 | ||||
-rw-r--r-- | src/com/android/browser/NavigationBarPhone.java | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/com/android/browser/NavScreen.java b/src/com/android/browser/NavScreen.java index 4e81915..1e4704e 100644 --- a/src/com/android/browser/NavScreen.java +++ b/src/com/android/browser/NavScreen.java @@ -66,7 +66,6 @@ public class NavScreen extends RelativeLayout NavTabScroller mScroller; TabAdapter mAdapter; int mOrientation; - boolean mNeedsMenu; HashMap<Tab, View> mTabViews; public NavScreen(Activity activity, UiController ctl, PhoneUi ui) { @@ -138,10 +137,6 @@ public class NavScreen extends RelativeLayout onCloseTab(tab); } }); - mNeedsMenu = !ViewConfiguration.get(getContext()).hasPermanentMenuKey(); - if (!mNeedsMenu) { - mMore.setVisibility(View.GONE); - } } @Override diff --git a/src/com/android/browser/NavigationBarPhone.java b/src/com/android/browser/NavigationBarPhone.java index f3eaa2a..6bdbf7d 100644 --- a/src/com/android/browser/NavigationBarPhone.java +++ b/src/com/android/browser/NavigationBarPhone.java @@ -50,7 +50,6 @@ public class NavigationBarPhone extends NavigationBarBase implements private Drawable mTextfieldBgDrawable; private PopupMenu mPopupMenu; private boolean mOverflowMenuShowing; - private boolean mNeedsMenu; private View mIncognitoIcon; public NavigationBarPhone(Context context) { @@ -91,7 +90,6 @@ public class NavigationBarPhone extends NavigationBarBase implements mTextfieldBgDrawable = res.getDrawable(R.drawable.textfield_active_holo_dark); mUrlInput.setContainer(this); mUrlInput.setStateListener(this); - mNeedsMenu = !ViewConfiguration.get(getContext()).hasPermanentMenuKey(); mIncognitoIcon = findViewById(R.id.incognito_icon); } @@ -224,7 +222,7 @@ public class NavigationBarPhone extends NavigationBarBase implements mMagnify.setVisibility(View.GONE); mTabSwitcher.setVisibility(View.VISIBLE); mTitleContainer.setBackgroundDrawable(null); - mMore.setVisibility(mNeedsMenu ? View.VISIBLE : View.GONE); + mMore.setVisibility(View.VISIBLE); break; case StateListener.STATE_HIGHLIGHTED: mComboIcon.setVisibility(View.GONE); |