[ 
https://issues.apache.org/jira/browse/CB-13634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16277364#comment-16277364
 ] 

Michael Goffioul commented on CB-13634:
---------------------------------------

> Oh ok, so because of the `removeSplashScreen` call on pause of the app the 
> app can flicker if the splashscreen is still showing, correct?

Yes. In my case, I want to keep the splashscreen while switching to another 
app. But because my app is being paused, the splashscreen window gets removed.

> Do you know what the original comment "hide the splash screen to avoid 
> leaking a window" refers to above that call?

I'm not sure, but I would say it might be because there is (or used to be) no 
guarantee that Android calls any other activity lifecycle method after onPause. 
I'm not sure whether that would leave a visible window on screen, I've never 
experienced it, but I would assume that when Android kills an app, all 
associated windows are also automatically removed. There might be some traces 
in the logs (like a backtrace), but no other visible effects.

In all cases, the proposed PR just allow an app to change the default behavior, 
keeping things backward compatible.


> Allow to keep the splashscreen window in onPause on Android
> -----------------------------------------------------------
>
>                 Key: CB-13634
>                 URL: https://issues.apache.org/jira/browse/CB-13634
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-plugin-splashscreen
>            Reporter: Michael Goffioul
>            Priority: Minor
>
> I have a use case whereby my webapp is launching another app while the 
> splashscreen is visible, and I want to keep the splashscreen window visible 
> to prevent unfriendly transient update during the app switching animation on 
> Android. It would be handy to allow an app to override the default behavior 
> of removing the splashscreen window in onPause.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to