@@ -268,12 +268,6 @@ public boolean shouldOverrideKeyEvent(WebView view, KeyEvent event) {
268268 }
269269
270270 public void transactionConfirm (String data ) {
271- // getContext().runOnUiThread(new Runnable() {
272- // @Override
273- // public void run() {
274- // webview.loadUrl("javascript:(function(){" + str + "})()");
275- // }
276- // });
277271 load ("var data = JSON.parse('" + data + "'); BootPay.transactionConfirm(data);" );
278272 }
279273
@@ -304,12 +298,13 @@ private boolean start(Intent intent) {
304298 }
305299
306300 private void setAnalyticsData () {
307- String .format (Locale .KOREA ,
301+ String data = String .format (Locale .KOREA ,
308302 "window.BootPay.setAnalyticsData({uuid:'%s',sk:'%s',sk_time:'%d',time:'%d'});"
309303 , UserInfo .getInstance (this .getContext ()).getBootpayUuid ()
310304 , UserInfo .getInstance (this .getContext ()).getBootpaySk ()
311305 , UserInfo .getInstance (this .getContext ()).getBootpayLastTime ()
312306 , System .currentTimeMillis () - UserInfo .getInstance (this .getContext ()).getBootpayLastTime ());
307+ load (data );
313308 }
314309
315310 private void setDevice () {
@@ -489,7 +484,6 @@ private void loadParams(String... script) {
489484 builder .append (";" );
490485 String request = builder .toString ();
491486
492- // Log.d("params", request);
493487
494488 load (request );
495489 }
0 commit comments