|
@ -16,7 +16,6 @@ import android.app.ProgressDialog;
|
16
|
16
|
import android.content.DialogInterface;
|
17
|
17
|
import android.content.Intent;
|
18
|
18
|
import android.graphics.Color;
|
19
|
|
import android.util.Log;
|
20
|
19
|
import android.view.Gravity;
|
21
|
20
|
import android.view.KeyEvent;
|
22
|
21
|
import android.webkit.WebView;
|
|
@ -152,8 +151,15 @@ public class MobileUI extends Plugin {
|
152
|
151
|
context.runOnUiThread(new Runnable() {
|
153
|
152
|
public void run() {
|
154
|
153
|
try {
|
|
154
|
|
|
155
|
// added by wyj,解决在安卓客户端文本框显示null的问题
|
|
156
|
Map<?, ?> dataTmp = data;
|
|
157
|
if(data!=null) {
|
|
158
|
dataTmp = new DataMap(data.toString().replaceAll("null", "\"\""));
|
|
159
|
}
|
|
160
|
|
155
|
161
|
TemplateWebView webview = initFlipperPage(pageAction, isAnimation);
|
156
|
|
webview.loadTemplate(templatePath, data);
|
|
162
|
webview.loadTemplate(templatePath, dataTmp);
|
157
|
163
|
} catch (Exception e) {
|
158
|
164
|
MobileLog.e(TAG, e.getMessage(), e);
|
159
|
165
|
}
|