Skip to content

Commit 62d864e

Browse files
修好沉浸,更新 Gradle
1 parent 657461e commit 62d864e

8 files changed

Lines changed: 205 additions & 172 deletions

File tree

app/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ android {
159159
dependencies {
160160
compileOnly(project(":hidden-api"))
161161

162-
// compileOnly files('libs/miui.jar')
163-
// compileOnly files("libs/miui-framework.jar")
164-
165162
compileOnly libs.xposed.api
166163

167164
implementation libs.dexkit

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@
6767
android:name=".ui.MainActivity"
6868
android:exported="true"
6969
android:screenOrientation="portrait"
70-
tools:ignore="DiscouragedApi,LockedOrientationActivity"
71-
android:theme="@style/Theme.HyperCeiler.SystemBarBackgrounds">
70+
tools:ignore="DiscouragedApi,LockedOrientationActivity">
7271
<intent-filter>
7372
<action android:name="android.intent.action.MAIN" />
7473
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
@@ -88,25 +87,16 @@
8887
<category android:name="android.intent.category.CrashDailog" />
8988
</intent-filter>
9089
</activity>
91-
<!--<activity
92-
android:name=".ui.MainActivity"
93-
android:exported="true">
94-
<intent-filter>
95-
<action android:name="android.intent.action.MAIN" />
96-
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
97-
</intent-filter>
98-
</activity>-->
9990

10091
<activity-alias
10192
android:name=".ui.LauncherActivity"
10293
android:exported="true"
10394
android:label="@string/app_name"
104-
android:targetActivity=".ui.MainActivity"
10595
android:screenOrientation="portrait"
96+
android:targetActivity=".ui.MainActivity"
10697
tools:ignore="DiscouragedApi,LockedOrientationActivity">
10798
<intent-filter>
10899
<action android:name="android.intent.action.MAIN" />
109-
110100
<category android:name="android.intent.category.LAUNCHER" />
111101
</intent-filter>
112102
</activity-alias>
@@ -118,7 +108,6 @@
118108
tools:ignore="DiscouragedApi,LockedOrientationActivity">
119109
<intent-filter>
120110
<action android:name="android.intent.action.MAIN" />
121-
122111
<category android:name="android.intent.category.DEFAULT" />
123112
</intent-filter>
124113
</activity>
@@ -167,6 +156,7 @@
167156
<action android:name="com.sevtinge.hyperceiler.crash.Service" />
168157
</intent-filter>
169158
</service>
159+
170160
</application>
171161

172162
</manifest>

app/src/main/res/values-night/themes.xml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
<resources>
2-
<style name="Base.Theme.HyperCeiler.DayNight" parent="Theme.AppCompat.DayNight.DarkActionBar">
3-
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Dark</item>
4-
<item name="android:forceDarkAllowed">false</item>
5-
<item name="rebootIconColor">@color/white</item>
6-
<item name="seekBarPreferenceExStyle">@style/Preference.SeekBarPreferenceEx</item>
7-
<item name="android:windowTranslucentNavigation">true</item>
8-
<item name="android:windowTranslucentStatus">true</item>
9-
</style>
102

11-
<style name="Theme.HyperCeiler.SystemBarBackgrounds">
12-
<item name="android:forceDarkAllowed">false</item>
3+
<style name="Base.Theme.HyperCeiler.DayNight" parent="Base.Theme.HyperCeiler">
4+
<item name="android:windowTranslucentNavigation">true</item>
135
<item name="android:windowTranslucentStatus">true</item>
14-
<item name="android:windowTranslucentNavigation">false</item>
15-
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
166
</style>
177

188
<style name="Base.Theme.HyperCeiler" parent="Theme.AppCompat.DayNight.DarkActionBar">

app/src/main/res/values/themes.xml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,19 @@
1-
<resources>
2-
<!-- Base application theme. -->
3-
<style name="AppTheme" parent="Base.Theme.HyperCeiler.DayNight"/>
1+
<resources xmlns:tools="http://schemas.android.com/tools">
42

5-
<style name="Theme.HyperCeiler.SystemBarBackgrounds">
6-
<item name="android:windowTranslucentStatus">true</item>
7-
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
8-
</style>
3+
<style name="AppTheme" parent="Base.Theme.HyperCeiler.DayNight" />
94

10-
<style name="Base.Theme.HyperCeiler.DayNight" parent="Theme.AppCompat.DayNight.DarkActionBar">
11-
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Light</item>
12-
<item name="rebootIconColor">@color/black</item>
13-
<item name="seekBarPreferenceExStyle">@style/Preference.SeekBarPreferenceEx</item>
5+
<style name="Base.Theme.HyperCeiler.DayNight" parent="Base.Theme.HyperCeiler">
146
<item name="android:windowTranslucentStatus">true</item>
157
<item name="android:windowTranslucentNavigation">true</item>
168
</style>
179

18-
<style name="Theme.HyperCeiler" parent="Base.Theme.HyperCeiler">
19-
<item name="android:windowTranslucentNavigation">true</item>
20-
</style>
21-
2210
<style name="Base.Theme.HyperCeiler" parent="Theme.AppCompat.DayNight.DarkActionBar">
2311
<item name="rebootIconColor">@color/black</item>
2412
<item name="preferenceTheme">@style/PreferenceThemeOverlay.Light</item>
2513
<item name="seekBarPreferenceExStyle">@style/Preference.SeekBarPreferenceEx</item>
2614
</style>
2715

28-
<style name="Theme.HyperCeiler.Translucent">
16+
<style name="Theme.HyperCeiler.Translucent" parent="Base.Theme.HyperCeiler">
2917
<item name="android:windowBackground">@color/transparent</item>
3018
<item name="android:windowIsTranslucent">true</item>
3119
<item name="android:windowTranslucentStatus">true</item>
@@ -40,7 +28,7 @@
4028
<item name="windowActionBarOverlay">false</item>
4129
</style>
4230

43-
<style name="Preference.SeekBarPreferenceEx" parent="@style/Preference">
31+
<style name="Preference.SeekBarPreferenceEx" parent="@style/Preference" tools:ignore="PrivateResource">
4432
<item name="android:layout">@layout/preference_widget_seekbar</item>
4533
</style>
4634

gradle/wrapper/gradle-wrapper.jar

-15.4 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Thu Mar 21 21:46:19 CST 2024
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-rc-1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)