From 7793db97ccf31c42d03580e93977022a61aec1c5 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 16 Sep 2022 09:32:38 +0200 Subject: [PATCH] refactor: replace deprecated Handler constructor (#1492) --- framework/src/org/apache/cordova/SplashScreenPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/SplashScreenPlugin.java b/framework/src/org/apache/cordova/SplashScreenPlugin.java index 79b2bc2a..91bcdc70 100644 --- a/framework/src/org/apache/cordova/SplashScreenPlugin.java +++ b/framework/src/org/apache/cordova/SplashScreenPlugin.java @@ -127,7 +127,7 @@ public class SplashScreenPlugin extends CordovaPlugin { // 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); }