Skip to content

Commit

Permalink
Update WebviewOverlay.java
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyankUpadhyay authored Apr 21, 2020
1 parent 3b33155 commit 3c65885
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3c65885

Please sign in to comment.