cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-plugin-splashscreen] CodeWithOz commented on issue #217: AutoHideSplashScreen "false" not working on first launch on Android
Date Wed, 05 Aug 2020 10:32:16 GMT

CodeWithOz commented on issue #217:
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/217#issuecomment-669116760


   @janpio hey I'm considering how to deactivate the auto-hide functionality right from the
native code because the splashscreen still automatically hides when I set `AutoHideSplashScreen`
to `"false"` in `config.xml`. I forked this repo and tried:
   - changing [this line](https://github.com/apache/cordova-plugin-splashscreen/blob/f41610c2f7850b82325f0b35decbbcd6008a99cc/src/android/SplashScreen.java#L112)
from
   ```js
   boolean autoHide = preferences.getBoolean("AutoHideSplashScreen", true);
   ```
   to
   ```js
   boolean autoHide = false;
   ```
   This didn't work (the splashscreen still hides automatically).
   
   - commenting out [this line](https://github.com/apache/cordova-plugin-splashscreen/blob/f41610c2f7850b82325f0b35decbbcd6008a99cc/src/android/SplashScreen.java#L337).
This also didn't work.
   
   What else can I try or am I missing something? I have tried creating a simple reproduction
(see my comment above) but the plugin works as expected there. Thanks!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


Mime
View raw message