pref: 默认启用新版 UI

This commit is contained in:
HuanCheng65 2023-10-05 18:08:17 +08:00
parent fd7f273277
commit 860ea01f34
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
4 changed files with 6 additions and 7 deletions

View File

@ -43,7 +43,6 @@ android {
} }
manifestPlaceholders = [ manifestPlaceholders = [
is_self_build: "$isSelfBuild", is_self_build: "$isSelfBuild",
enable_new_ui: "${debug || isSelfBuild}",
] ]
} }
buildFeatures { buildFeatures {

View File

@ -50,10 +50,10 @@
android:allowBackup="true" android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules" android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_descriptor" android:fullBackupContent="@xml/backup_descriptor"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher_new"
android:label="@string/app_name" android:label="@string/app_name"
android:largeHeap="true" android:largeHeap="true"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_new_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme" android:theme="@style/AppTheme"
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
@ -128,10 +128,11 @@
android:value="${is_self_build}" /> android:value="${is_self_build}" />
<meta-data <meta-data
android:name="enable_new_ui" android:name="enable_new_ui"
android:value="${enable_new_ui}" /> android:value="true" />
<activity <activity
android:name=".activities.MainActivity" android:name=".activities.MainActivity"
android:enabled="false"
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden" android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
android:exported="true" android:exported="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
@ -152,7 +153,7 @@
<activity <activity
android:name=".MainActivityV2" android:name=".MainActivityV2"
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboard|navigation|keyboardHidden" android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboard|navigation|keyboardHidden"
android:enabled="${enable_new_ui}" android:enabled="true"
android:exported="true" android:exported="true"
android:icon="@mipmap/ic_launcher_new" android:icon="@mipmap/ic_launcher_new"
android:roundIcon="@mipmap/ic_launcher_new_round" android:roundIcon="@mipmap/ic_launcher_new_round"

View File

@ -18,7 +18,6 @@
</string-array> </string-array>
<string-array name="experimental_features"> <string-array name="experimental_features">
<item>oksign_use_official_oksign</item>
<item>checkCIUpdate</item> <item>checkCIUpdate</item>
</string-array> </string-array>

View File

@ -260,7 +260,7 @@
android:title="@string/title_check_ci_update" /> android:title="@string/title_check_ci_update" />
<SwitchPreference <SwitchPreference
android:defaultValue="false" android:defaultValue="true"
android:icon="@drawable/ic_round_fiber_new" android:icon="@drawable/ic_round_fiber_new"
android:key="enableNewUi" android:key="enableNewUi"
android:summary="@string/summary_enable_new_ui" android:summary="@string/summary_enable_new_ui"