Skip to content
Permalink
Browse files
CB-11326 Prevent crash when initializing plugin after navigating to a…
…nother URL
  • Loading branch information
vladimir-kotikov committed Jul 21, 2016
1 parent 0a8b5be commit 41ca5809b111c552d7f5b9adc0c5745fe6459085
Showing 1 changed file with 7 additions and 1 deletion.
@@ -83,7 +83,13 @@ protected void pluginInitialize() {
return;
}
// Make WebView invisible while loading URL
getView().setVisibility(View.INVISIBLE);
// CB-11326 Ensure we're calling this on UI thread
cordova.getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
getView().setVisibility(View.INVISIBLE);
}
});
int drawableId = preferences.getInteger("SplashDrawableId", 0);
if (drawableId == 0) {
String splashResource = preferences.getString("SplashScreen", "screen");

0 comments on commit 41ca580

Please sign in to comment.