Skip to content

Commit

Permalink
refactor: replace deprecated Handler constructor (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Sep 16, 2022
1 parent 248257b commit 7793db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/org/apache/cordova/SplashScreenPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void setupSplashScreen(SplashScreen splashScreen) {

// auto hide splash screen when custom delay is defined.
if (autoHide && delayTime != DEFAULT_DELAY_TIME) {
Handler splashScreenDelayHandler = new Handler();
Handler splashScreenDelayHandler = new Handler(cordova.getContext().getMainLooper());
splashScreenDelayHandler.postDelayed(() -> keepOnScreen = false, delayTime);
}

Expand Down

0 comments on commit 7793db9

Please sign in to comment.