|
@@ -27,6 +27,7 @@ public class Options implements DEFAULT_VALUES {
|
27
|
27
|
result.overlayOptions = OverlayOptions.parse(json.optJSONObject("overlay"));
|
28
|
28
|
result.fabOptions = FabOptions.parse(json.optJSONObject("fab"));
|
29
|
29
|
result.animationsOptions = AnimationsOptions.parse(json.optJSONObject("animations"));
|
|
30
|
+ result.sideMenuRootOptions = SideMenuRootOptions.parse(json.optJSONObject("sideMenu"));
|
30
|
31
|
|
31
|
32
|
return result.withDefaultOptions(defaultOptions);
|
32
|
33
|
}
|
|
@@ -39,6 +40,7 @@ public class Options implements DEFAULT_VALUES {
|
39
|
40
|
@NonNull public OverlayOptions overlayOptions = new OverlayOptions();
|
40
|
41
|
@NonNull public FabOptions fabOptions = new FabOptions();
|
41
|
42
|
@NonNull public AnimationsOptions animationsOptions = new AnimationsOptions();
|
|
43
|
+ @NonNull public SideMenuRootOptions sideMenuRootOptions = new SideMenuRootOptions();
|
42
|
44
|
|
43
|
45
|
void setTopTabIndex(int i) {
|
44
|
46
|
topTabOptions.tabIndex = i;
|
|
@@ -55,6 +57,7 @@ public class Options implements DEFAULT_VALUES {
|
55
|
57
|
result.overlayOptions = overlayOptions;
|
56
|
58
|
result.fabOptions.mergeWith(fabOptions);
|
57
|
59
|
result.animationsOptions.mergeWith(animationsOptions);
|
|
60
|
+ result.sideMenuRootOptions.mergeWith(sideMenuRootOptions);
|
58
|
61
|
return result;
|
59
|
62
|
}
|
60
|
63
|
|
|
@@ -68,6 +71,7 @@ public class Options implements DEFAULT_VALUES {
|
68
|
71
|
result.bottomTabsOptions.mergeWith(other.bottomTabsOptions);
|
69
|
72
|
result.fabOptions.mergeWith(other.fabOptions);
|
70
|
73
|
result.animationsOptions.mergeWith(other.animationsOptions);
|
|
74
|
+ result.sideMenuRootOptions.mergeWith(other.sideMenuRootOptions);
|
71
|
75
|
return result;
|
72
|
76
|
}
|
73
|
77
|
|
|
@@ -79,6 +83,7 @@ public class Options implements DEFAULT_VALUES {
|
79
|
83
|
bottomTabsOptions.mergeWithDefault(other.bottomTabsOptions);
|
80
|
84
|
fabOptions.mergeWithDefault(other.fabOptions);
|
81
|
85
|
animationsOptions.mergeWithDefault(other.animationsOptions);
|
|
86
|
+ sideMenuRootOptions.mergeWithDefault(other.sideMenuRootOptions);
|
82
|
87
|
return this;
|
83
|
88
|
}
|
84
|
89
|
|
|
@@ -106,4 +111,9 @@ public class Options implements DEFAULT_VALUES {
|
106
|
111
|
bottomTabOptions = new BottomTabOptions();
|
107
|
112
|
return this;
|
108
|
113
|
}
|
|
114
|
+
|
|
115
|
+ public Options clearSideMenuOptions() {
|
|
116
|
+ sideMenuRootOptions = new SideMenuRootOptions();
|
|
117
|
+ return this;
|
|
118
|
+ }
|
109
|
119
|
}
|