Fix API 26–28 startup crash: DayNight platform theme requires API 29
Caught by the first-ever lint run. Split into values/ (Material.Light) and values-night/ (Material) instead — same pre-Compose window flash behavior on every supported API level. Remaining lint warnings are deliberate: BatteryLife is decision #4 (sideloaded, Play policy n/a), OldTargetApi keeps targetSdk 35 per the brief, and the Kotlin 2.4 'newer version' nags stay blocked by KSP compatibility. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
e16fd72d06
commit
3ce003d336
2 changed files with 7 additions and 5 deletions
4
app/src/main/res/values-night/themes.xml
Normal file
4
app/src/main/res/values-night/themes.xml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.MedDetSamme" parent="android:Theme.Material.NoActionBar" />
|
||||
</resources>
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Compose draws everything; this only styles the window before setContent.
|
||||
DayNight platform parent so the pre-Compose flash matches dark mode. -->
|
||||
<style name="Theme.MedDetSamme" parent="android:Theme.DeviceDefault.DayNight" >
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
</style>
|
||||
Light/dark split via values-night/ because DayNight-temaet krever API 29
|
||||
og minSdk er 26. -->
|
||||
<style name="Theme.MedDetSamme" parent="android:Theme.Material.Light.NoActionBar" />
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue