Skip to content

Commit

Permalink
修复 开发者选项闪退
Browse files Browse the repository at this point in the history
修复 系统界面-状态栏-图标和时钟指示器白屏
  • Loading branch information
Fan095 committed Jun 13, 2024
1 parent 759c648 commit a014a76
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public void initPrefs() {
mToastStatus.setVisible(isHyperOSVersion(1f));

if (isMoreHyperOSVersion(1f)) {
mIconManager.setFragment("com.sevtinge.hyperceiler.ui.fragment.systemui.statusbar.IconManageNewSettings");
mClockStatus.setFragment("com.sevtinge.hyperceiler.ui.fragment.systemui.statusbar.NewClockIndicatorSettings");
mIconManager.setFragment("com.sevtinge.hyperceiler.ui.sub.systemui.statusbar.IconManageNewSettings");
mClockStatus.setFragment("com.sevtinge.hyperceiler.ui.sub.systemui.statusbar.NewClockIndicatorSettings");
} else {
mIconManager.setFragment("com.sevtinge.hyperceiler.ui.fragment.systemui.statusbar.IconManageSettings");
mClockStatus.setFragment("com.sevtinge.hyperceiler.ui.fragment.systemui.statusbar.ClockIndicatorSettings");
mIconManager.setFragment("com.sevtinge.hyperceiler.ui.sub.systemui.statusbar.IconManageSettings");
mClockStatus.setFragment("com.sevtinge.hyperceiler.ui.sub.systemui.statusbar.ClockIndicatorSettings");
}

mStatusBarLayout.setVisible(!isMoreHyperOSVersion(1f));
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/framework_volume.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:summary="@string/system_framework_volume_media_steps_desc"
android:title="@string/system_framework_volume_media_steps" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="15"
android:dependency="prefs_key_system_framework_volume_media_steps_enable"
android:key="prefs_key_system_framework_volume_media_steps"
Expand All @@ -51,7 +51,7 @@
app:showSeekBarValue="true"
app:stepValue="1" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="0"
android:key="prefs_key_system_framework_volume_steps"
android:title="@string/system_framework_volume_steps"
Expand Down
18 changes: 9 additions & 9 deletions app/src/main/res/xml/home_dock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
android:key="prefs_key_home_dock_bg_custom"
android:title="@string/home_dock_bg_custom" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="150"
android:dependency="prefs_key_home_dock_bg_custom_enable"
android:key="prefs_key_home_dock_bg_height"
Expand All @@ -76,7 +76,7 @@
app:showSeekBarValue="true"
app:stepValue="1" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="25"
android:dependency="prefs_key_home_dock_bg_custom_enable"
android:key="prefs_key_home_dock_bg_margin_horizontal"
Expand All @@ -88,7 +88,7 @@
app:showSeekBarValue="true"
app:stepValue="1" />

<!--SeekBarPreferenceEx
<!--SeekBarPreference
android:key="prefs_key_home_dock_bg_margin_top"
android:dependency="prefs_key_home_dock_bg_custom_enable"
android:title="@string/top_margin"
Expand All @@ -100,7 +100,7 @@
app:format="%d dp"
app:showSeekBarValue="true" /-->

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="15"
android:dependency="prefs_key_home_dock_bg_custom_enable"
android:key="prefs_key_home_dock_bg_margin_bottom"
Expand All @@ -112,7 +112,7 @@
app:showSeekBarValue="true"
app:stepValue="1" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="30"
android:dependency="prefs_key_home_dock_bg_custom_enable"
android:key="prefs_key_home_dock_bg_radius"
Expand All @@ -123,7 +123,7 @@
app:showSeekBarValue="true"
app:stepValue="1" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="200"
android:dependency="prefs_key_home_dock_bg_custom_enable"
android:key="prefs_key_custom_background_blur_degree"
Expand All @@ -140,7 +140,7 @@
android:key="prefs_key_home_dock_bg_color"
android:title="@string/home_dock_bg_color" />

<!--<SeekBarPreferenceEx
<!--<SeekBarPreference
android:key="prefs_key_home_dock_icon_margin_bottom"
android:title="@string/home_dock_icon_margin_bottom"
android:summary="@string/home_dock_icon_margin_bottom_desc"
Expand All @@ -150,15 +150,15 @@
app:stepValue="1"
android:dependency="prefs_key_home_dock_bg_custom_enable" />
<SeekBarPreferenceEx
<SeekBarPreference
android:key="prefs_key_home_dock_icon_bottom_margin"
android:title="@string/home_dock_icon_bottom_margin"
android:defaultValue="35"
app:maxValue="100"
app:stepValue="1"
android:dependency="prefs_key_home_dock_bg_custom_enable" />
<SeekBarPreferenceEx
<SeekBarPreference
android:key="prefs_key_home_dock_margin_bottom"
android:title="@string/home_dock_margin_bottom"
android:defaultValue="60"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/home_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
android:summary="@string/home_drawer_blur_desc"
android:title="@string/home_drawer_blur_super" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="30"
android:dependency="prefs_key_home_drawer_blur_super"
android:key="prefs_key_home_drawer_blur_super_radius"
Expand All @@ -38,7 +38,7 @@
app:showSeekBarValue="true"
app:stepValue="1" />

<SeekBarPreferenceEx
<SeekBarPreference
android:defaultValue="200"
android:dependency="prefs_key_home_drawer_blur_super"
android:key="prefs_key_drawer_background_blur_degree"
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/res/xml/prefs_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@
<Preference
android:fragment="com.sevtinge.hyperceiler.ui.sub.CommonFragment"
android:key="prefs_key_development"
android:title="@string/development" />
<extra
android:name="contentResId"
android:value="prefs_development" />
android:title="@string/development" >
<extra
android:name="contentResId"
android:value="prefs_development" />
</Preference>
</PreferenceCategory>

</PreferenceScreen>

0 comments on commit a014a76

Please sign in to comment.