refactor: replace deprecated Handler constructor (#1492)

This commit is contained in:
jcesarmobile 2022-09-16 09:32:38 +02:00 committed by GitHub
parent 248257bd37
commit 7793db97cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}