You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2022/09/13 23:41:10 UTC

[cordova-android] branch splash-depre created (now 26c9dacd)

This is an automated email from the ASF dual-hosted git repository.

jcesarmobile pushed a change to branch splash-depre
in repository https://gitbox.apache.org/repos/asf/cordova-android.git


      at 26c9dacd refactor: replace deprecated Handler constructor

This branch includes the following new commits:

     new 26c9dacd refactor: replace deprecated Handler constructor

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-android] 01/01: refactor: replace deprecated Handler constructor

Posted by jc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jcesarmobile pushed a commit to branch splash-depre
in repository https://gitbox.apache.org/repos/asf/cordova-android.git

commit 26c9dacdcb93391b041ba4ef5e99b02b4c30a702
Author: jcesarmobile <jc...@gmail.com>
AuthorDate: Wed Sep 14 01:40:57 2022 +0200

    refactor: replace deprecated Handler constructor
---
 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);
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org