From 3c658853f5d771d2ad070fc1b319b95b12cccc6c Mon Sep 17 00:00:00 2001 From: Priyank <55573875+PriyankUpadhyay@users.noreply.github.com> Date: Tue, 21 Apr 2020 11:23:23 +0530 Subject: [PATCH] Update WebviewOverlay.java --- .../java/com/example/ymwebview/WebviewOverlay.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ymwebview/src/main/java/com/example/ymwebview/WebviewOverlay.java b/ymwebview/src/main/java/com/example/ymwebview/WebviewOverlay.java index 9b6a27f..4d95be2 100755 --- a/ymwebview/src/main/java/com/example/ymwebview/WebviewOverlay.java +++ b/ymwebview/src/main/java/com/example/ymwebview/WebviewOverlay.java @@ -41,6 +41,12 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c progressDialog.setTitle("Please wait."); progressDialog.setMessage("The bot is initializing..."); progressDialog.setCanceledOnTouchOutside(false); + try { + progressDialog.show(); + } + catch (Exception e){ + Log.e(TAG, "YmPlugin: Bot loading dialog ", e ); + } myWebView = (AdvancedWebView) preLoadWebView(); return myWebView; } @@ -115,12 +121,6 @@ public void sendEvent(String s){ } @Override public void onPageStarted(String url, Bitmap favicon) { - try { - progressDialog.show(); - } - catch (Exception e){ - Log.e(TAG, "YmPlugin: Bot loading dialog ", e ); - } } @Override