|
@ -34,7 +34,6 @@ import com.wade.mobile.common.contacts.util.ContactsConstant;
|
34
|
34
|
import com.wade.mobile.frame.IWadeMobile;
|
35
|
35
|
import com.wade.mobile.frame.WadeMobileActivity;
|
36
|
36
|
import com.wade.mobile.frame.client.WadeWebViewClient;
|
37
|
|
import com.wade.mobile.frame.config.MobileConfig;
|
38
|
37
|
import com.wade.mobile.frame.config.ServerPageConfig;
|
39
|
38
|
import com.wade.mobile.frame.event.impl.TemplateWebViewEvent;
|
40
|
39
|
import com.wade.mobile.frame.plugin.Plugin;
|
|
@ -56,7 +55,6 @@ import com.wade.mobile.util.Messages;
|
56
|
55
|
import com.wade.mobile.util.Utility;
|
57
|
56
|
|
58
|
57
|
public class MobileUI extends Plugin {
|
59
|
|
private boolean isMultWebview = MobileConfig.getInstance().isMultWebview();
|
60
|
58
|
private static SimpleProgressDialog progressDialog = null;
|
61
|
59
|
private final int REQUEST_CODE_CUSTOM_DIALOG = 100;
|
62
|
60
|
private final int REQUEST_CODE_CUSTOM_WINDOW = 200;
|
|
@ -140,9 +138,7 @@ public class MobileUI extends Plugin {
|
140
|
138
|
|
141
|
139
|
/**
|
142
|
140
|
* 本地模式打开页面
|
143
|
|
*
|
144
|
|
* @param isAnimation
|
145
|
|
* 多视图模式是否使用动画效果
|
|
141
|
* 多视图模式是否使用动画效果
|
146
|
142
|
*/
|
147
|
143
|
public void openTemplate(final String pageAction, final Map<?, ?> data,
|
148
|
144
|
final boolean isAnimation) throws Exception {
|
|
@ -152,22 +148,18 @@ public class MobileUI extends Plugin {
|
152
|
148
|
Utility.error(Messages.NO_TEMPLATE + ",Action:" + pageAction);
|
153
|
149
|
}
|
154
|
150
|
|
155
|
|
if (isMultWebview) {
|
156
|
|
context.runOnUiThread(new Runnable() {
|
157
|
|
public void run() {
|
158
|
|
// TODO Auto-generated method stub
|
159
|
|
try {
|
160
|
|
TemplateWebView webview = initFlipperPage(pageAction,
|
161
|
|
isAnimation);
|
162
|
|
webview.loadTemplate(templatePath, data);
|
163
|
|
} catch (Exception e) {
|
164
|
|
MobileLog.e(TAG, e.getMessage(), e);
|
165
|
|
}
|
|
151
|
context.runOnUiThread(new Runnable() {
|
|
152
|
public void run() {
|
|
153
|
// TODO Auto-generated method stub
|
|
154
|
try {
|
|
155
|
TemplateWebView webview = initFlipperPage(pageAction,
|
|
156
|
isAnimation);
|
|
157
|
webview.loadTemplate(templatePath, data);
|
|
158
|
} catch (Exception e) {
|
|
159
|
MobileLog.e(TAG, e.getMessage(), e);
|
166
|
160
|
}
|
167
|
|
});
|
168
|
|
} else {
|
169
|
|
((TemplateWebView) getWebView()).loadTemplate(templatePath, data);
|
170
|
|
}
|
|
161
|
}
|
|
162
|
});
|
171
|
163
|
}
|
172
|
164
|
|
173
|
165
|
public void openTemplate(String pageAction, Map<?, ?> data)
|