|
@ -94,10 +94,11 @@ public class MobileUI extends Plugin {
|
94
|
94
|
JSONArray arrayStyles = param.optJSONArray(3);
|
95
|
95
|
boolean isHideTopBar = param.optBoolean(4, false);
|
96
|
96
|
JSONArray isHideIcons = param.optJSONArray(5);
|
97
|
|
openUrl(url, !isHideTopBar, title, buttons, arrayStyles,isHideIcons);
|
|
97
|
boolean isShowFloatButton = param.optBoolean(6, isHideTopBar);
|
|
98
|
openUrl(url, !isHideTopBar, isShowFloatButton, title, buttons, arrayStyles,isHideIcons);
|
98
|
99
|
}
|
99
|
100
|
|
100
|
|
private void openUrl(String url, boolean isShowTopBar, String title, JSONArray buttons, JSONArray arrayStyles,JSONArray isHideIcons) throws Exception {
|
|
101
|
private void openUrl(String url, boolean isShowTopBar, boolean isShowFloatButton, String title, JSONArray buttons, JSONArray arrayStyles,JSONArray isHideIcons) throws Exception {
|
101
|
102
|
String[] styleNames = {"topbarbg", "iconcolor", "textcolor"};
|
102
|
103
|
url = URLDecoder.decode(url);
|
103
|
104
|
Intent intent = new Intent();
|
|
@ -105,6 +106,7 @@ public class MobileUI extends Plugin {
|
105
|
106
|
if(!isShowTopBar){
|
106
|
107
|
intent.putExtra("isShowTopBar", isShowTopBar);
|
107
|
108
|
}
|
|
109
|
intent.putExtra("isShowFloatButton", isShowFloatButton);
|
108
|
110
|
if (!isNull(title)) {
|
109
|
111
|
intent.putExtra("title", title);
|
110
|
112
|
}
|