|
@ -92,15 +92,19 @@ public class MobileUI extends Plugin {
|
92
|
92
|
String title = param.optString(1);
|
93
|
93
|
JSONArray buttons = param.optJSONArray(2);
|
94
|
94
|
JSONArray arrayStyles = param.optJSONArray(3);
|
95
|
|
openUrl(url, title, buttons, arrayStyles);
|
|
95
|
String isShowTopBar = param.optString(4);
|
|
96
|
openUrl(url, isShowTopBar, title, buttons, arrayStyles);
|
96
|
97
|
|
97
|
98
|
}
|
98
|
99
|
|
99
|
|
private void openUrl(String url, String title, JSONArray buttons, JSONArray arrayStyles) throws Exception {
|
|
100
|
private void openUrl(String url, String isShowTopBar, String title, JSONArray buttons, JSONArray arrayStyles) throws Exception {
|
100
|
101
|
String[] styleNames = {"topbarbg", "iconcolor", "textcolor"};
|
101
|
102
|
url = URLDecoder.decode(url);
|
102
|
103
|
Intent intent = new Intent();
|
103
|
104
|
intent.putExtra("url", url);
|
|
105
|
if(isShowTopBar != null){
|
|
106
|
intent.putExtra("isShowTopBar", isShowTopBar);
|
|
107
|
}
|
104
|
108
|
if (title != null) {
|
105
|
109
|
intent.putExtra("title", title);
|
106
|
110
|
}
|