3333import kr .co .bootpay .pref .UserInfo ;
3434
3535public class BootpayWebView extends WebView {
36- // private static final String BOOTPAY = "https://inapp.bootpay.co.kr/3.0.2/production.html";
37- private static final String BOOTPAY = "https://inapp.bootpay.co.kr/2.1.1/production.html" ;
36+ private static final String BOOTPAY = "https://inapp.bootpay.co.kr/3.0.2/production.html" ;
37+ // private static final String BOOTPAY = "https://inapp.bootpay.co.kr/2.1.1/production.html";
3838
3939 private Dialog dialog ;
4040// private ConnectivityManager connManager;
@@ -329,7 +329,7 @@ private String request(String... query) {
329329
330330 private String ready () { return ".ready(function(data){Android.ready(JSON.stringify(data));})" ; }
331331
332- private String close () { return ".close(function(data){Android.close('close');})" ; }
332+ private String close () { return ".close(function(data){ Android.close('close') ;})" ; }
333333
334334 private String confirm () { return ".confirm(function(data){Android.confirm(JSON.stringify(data));})" ; }
335335
@@ -526,11 +526,13 @@ public void done(String data) {
526526 eventHandler .sendMessage (Message .obtain (eventHandler , DONE , data ));
527527 }
528528
529+ @ JavascriptInterface
529530 @ Override
530531 public void close (String data ) {
531532 eventHandler .sendMessage (Message .obtain (eventHandler , CLOSE , data ));
532533 }
533534
535+ @ JavascriptInterface
534536 @ Override
535537 public void ready (String data ) {
536538 eventHandler .sendMessage (Message .obtain (eventHandler , READY , data ));
@@ -539,6 +541,7 @@ public void ready(String data) {
539541
540542 private void onCloseHandled (String data ) {
541543 if (listener != null ) listener .onClose (data );
544+ if (dialog != null ) dialog .dismiss ();
542545 }
543546
544547 private void onErrorHandled (String data ) {
0 commit comments