diff options
-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); |