Browse Source

Add missing files

Guy Carmeli 8 years ago
parent
commit
ad428daf3f

+ 3
- 0
android/app/src/main/java/com/reactnativenavigation/core/objects/Button.java View File

@@ -22,11 +22,13 @@ public class Button extends JsonObject implements Serializable {
22 22
     private static final String KEY_TITLE = "title";
23 23
     private static final String KEY_ICON = "icon";
24 24
     private static final String KEY_DISABLED = "disabled";
25
+    private static final String KEY_SHOW_AS_ACTION = "showAsAction";
25 26
 
26 27
     public String id;
27 28
     public String title;
28 29
     private String mIconSource;
29 30
     public boolean disabled;
31
+    public String showAsAction;
30 32
 
31 33
     private static final AtomicInteger sAtomicIdGenerator = new AtomicInteger();
32 34
     private static final Map<String, Integer> sStringToNumericId = new HashMap<>();
@@ -36,6 +38,7 @@ public class Button extends JsonObject implements Serializable {
36 38
         title = getString(button, KEY_TITLE, "");
37 39
         mIconSource = getString(button, KEY_ICON);
38 40
         disabled = getBoolean(button, KEY_DISABLED);
41
+        showAsAction = getString(button, KEY_SHOW_AS_ACTION, "");
39 42
     }
40 43
 
41 44
     public boolean hasIcon() {