Bug 1265433 - Pre: remove unnecessary v11 checks r=me
MozReview-Commit-ID: LHg1QcxpwIF
--- a/mobile/android/base/java/org/mozilla/gecko/menu/GeckoMenuInflater.java
+++ b/mobile/android/base/java/org/mozilla/gecko/menu/GeckoMenuInflater.java
@@ -125,20 +125,17 @@ public class GeckoMenuInflater extends M
item.order = a.getInt(R.styleable.MenuItem_android_orderInCategory, 0);
item.title = a.getText(R.styleable.MenuItem_android_title);
item.checkable = a.getBoolean(R.styleable.MenuItem_android_checkable, false);
item.checked = a.getBoolean(R.styleable.MenuItem_android_checked, false);
item.visible = a.getBoolean(R.styleable.MenuItem_android_visible, true);
item.enabled = a.getBoolean(R.styleable.MenuItem_android_enabled, true);
item.hasSubMenu = false;
item.iconRes = a.getResourceId(R.styleable.MenuItem_android_icon, 0);
-
- if (Versions.feature11Plus) {
- item.showAsAction = a.getInt(R.styleable.MenuItem_android_showAsAction, 0);
- }
+ item.showAsAction = a.getInt(R.styleable.MenuItem_android_showAsAction, 0);
a.recycle();
}
public void setValues(ParsedItem item, MenuItem menuItem) {
// We are blocking any presenter updates during inflation.
GeckoMenuItem geckoItem = null;
if (menuItem instanceof GeckoMenuItem) {