mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-18 22:52:54 +08:00
refactor: replace deprecated Handler constructor (#1492)
This commit is contained in:
parent
248257bd37
commit
7793db97cc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user