I designed an Android app with Jetpack Compose. I did not change anything in themes.xml, though my app does not skip to the starting destination of my app. A screen appears and does not go away unless i touched screen. When i change the parent line in themes.xml, android:Theme.Material.NoActionBar to android:Theme.Material.NoActionBar.FullScreen then app works fine but I don't want to make it fullscreen. Is it possible that is a bug ?
<style
name="Theme.TradeJournal" parent="android:Theme.Material.NoActionBar"> // this line
<item name="android:statusBarColor">@color/purple_200</item>
</style>
themes.xml :
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name="Theme.TradeJournal" parent="android:Theme.Material.NoActionBar">
<item name="android:statusBarColor">@color/purple_200</item>
</style>
</resources>
AndroidManifests :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.sevban.tradejournal">
<uses-permission android:name="android.permission.INTERNET"> </uses-permission>
<application
android:name=".TradeJournalApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.TradeJournal"
tools:targetApi="31">
<activity
android:name=".view.MainActivity"
android:exported="true"
android:theme="@style/Theme.TradeJournal">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Thanks in advance.