ljudbane commented on issue #1465: URL: https://github.com/apache/cordova-android/issues/1465#issuecomment-1216730224
While further exploring this issue i found this resource: https://developer.android.com/guide/topics/display-cutout. The way the cutout behaves, can be defined in manifest inside <style>. So i tried adding ``` <item name="android:windowLayoutInDisplayCutoutMode"> never </item> ``` to file `platforms/android/app/src/main/res/values/themes.xml` and i got the top black bar back. The Android studio warned me that this option was only available from some Android version on so i let it create a `values-v27/themes.xml` override file. As to why the default behaviour changed, i don't know. Maybe because we target higher API version now. Or because theme on main activity was changed to `@style/Theme.App.SplashScreen`. Since i need a quick solution to this i will be creating a after_platform_add hook in my project that will create a `values-v27/themes.xml` file in the Android project. Maybe in the future this could be controlled with a setting in config.xml :) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
