Browse Source

openur预留控制标题隐藏参数

wuyong3 6 years ago
parent
commit
02f17006be

+ 6 - 2
ipu-plugin-basic/src/main/java/com/ai/ipu/mobile/plugin/MobileUI.java

92
        String title = param.optString(1);
92
        String title = param.optString(1);
93
        JSONArray buttons = param.optJSONArray(2);
93
        JSONArray buttons = param.optJSONArray(2);
94
        JSONArray arrayStyles = param.optJSONArray(3);
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
        String[] styleNames = {"topbarbg", "iconcolor", "textcolor"};
101
        String[] styleNames = {"topbarbg", "iconcolor", "textcolor"};
101
        url = URLDecoder.decode(url);
102
        url = URLDecoder.decode(url);
102
	    Intent intent = new Intent();
103
	    Intent intent = new Intent();
103
        intent.putExtra("url", url);
104
        intent.putExtra("url", url);
105
        if(isShowTopBar != null){
106
        	intent.putExtra("isShowTopBar", isShowTopBar);
107
        }
104
        if (title != null) {
108
        if (title != null) {
105
            intent.putExtra("title", title);
109
            intent.putExtra("title", title);
106
        }
110
        }