Skip to content

Commit ac081b6

Browse files
authored
Merge pull request #264 from NativeScript/vchimev/dark-mode/opt-in
feat(Android): opt in to force dark
2 parents 4197d54 + b693809 commit ac081b6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/app-resources/_files/__name__/Android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<activity
2929
android:name="com.tns.NativeScriptActivity"
3030
android:label="@string/title_activity_kimera"
31-
android:configChanges="keyboardHidden|orientation|screenSize"
31+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
3232
android:theme="@style/LaunchScreenTheme">
3333

3434
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<!-- Application theme -->
5+
<style name="AppTheme" parent="AppThemeBase">
6+
<item name="android:forceDarkAllowed">true</item>
7+
</style>
8+
9+
</resources>

0 commit comments

Comments
 (0)