Closed 7dp closed 1 year ago
This is caused by the theme being applied to the whole application, and not activity only. An easy way to fix this, by editing your AndroidManifest.xml
:
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
- android:theme="@style/BootTheme">
+ android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
+ android:theme="@style/BootTheme"
android:exported="true"> <!-- note the new "exported" element needed for API31 -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I will update the README accordingly
Thank you Mathieu for the excellent solution, and the README update!
Bug summary
[Android] Splash screen is appear as a background when opening debug menu (shake the device > select Settings).
Expectation:
Reality:
Any help would be appreciated 😊. And thanks for this really good library!
Library version
^5.1.3
Environment info
Steps to reproduce
Reproducible sample code