See PR: https://github.com/apache/cordova-plugin-splashscreen/pull/161

Github diff wasn't very kind.  To summarize the changes:
- a SplashScreenThemeId preference is initialized in pluginInitialize() and 
defaults to the previously hardcoded value. this follows the way drawableId is 
handled.
- isActivityFullScreen() was added with logic removed from showSplashScreen().
- in showSplashScreen() - before the Runnable:
    - int themeId is set to the SplashScreenThemeId preference value.
    - int backgroundColor is set according to the SplashScreenBackgroundColor 
preference and defaults to the previously hardcoded value.
- in showSplashScreen() - in the Runnable:
    - the background color of the ImageView is set to int backgroundColor.
    - the Dialog is created with int themeId.
    - isActivityFullScreen() is used to decide whether to add FLAG_FULLSCREEN 
to the Dialog Window LayoutParams.

Hope that helps.  Please let me  know if you have any questions.  Also, the 
changes were made to version 4.0.4-dev according to the plugin.xml.  I'm not 
sure which commit that corresponds to.


[ Full content available at: 
https://github.com/apache/cordova-plugin-splashscreen/issues/160 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to