Skip to content

Commit

Permalink
adj:hide #492 (Because this method does not take effect on the new ve…
Browse files Browse the repository at this point in the history
…rsion of the system launcher, waiting for troubleshooting)
  • Loading branch information
lingqiqi5211 committed Mar 26, 2024
1 parent 3d780c5 commit 40e6590
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
CANARY: ${{ env.APK_FILE_CANARY }}
COMMIT_MESSAGE: |+
New push to GitHub Action
New push to GitHub
```
${{ github.event.head_commit.message }}
```by `${{ github.event.head_commit.author.name }}`
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
DEBUG: ${{ env.APK_FILE_DEBUG }}
COMMIT_MESSAGE: |+
New push to GitHub Action
New push to GitHub
by `${{ github.triggering_actor }}`
See commit detail [here](${{ github.event.head_commit.url }})
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public void handleLoadPackage() {
initHook(ShowDockIconTitle.INSTANCE, mPrefsMap.getBoolean("home_dock_icon_title"));
initHook(new HideNavigationBar(), mPrefsMap.getBoolean("system_ui_hide_navigation_bar"));
initHook(DisableRecentsIcon.INSTANCE, mPrefsMap.getBoolean("home_dock_disable_recents_icon"));
initHook(SlideUpOnlyShowDock.INSTANCE, mPrefsMap.getBoolean("home_dock_slide_up_only_show_dock"));
initHook(SlideUpOnlyShowDock.INSTANCE, mPrefsMap.getBoolean("home_dock_slide_up_only_show_dock") && !mPrefsMap.getBoolean("home_dock_hide_dock"));
initHook(HideDock.INSTANCE, mPrefsMap.getBoolean("home_dock_hide_dock"));

// 其他
Expand Down
27 changes: 16 additions & 11 deletions app/src/main/res/xml/home_dock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@
android:key="prefs_key_home_dock_disable_recents_icon"
android:title="@string/home_dock_disable_recents_icon" />

<SwitchPreference
android:defaultValue="false"
android:disableDependentsState="true"
android:key="prefs_key_home_dock_hide_dock"
android:summary="@string/home_dock_hide_dock_desc"
android:title="@string/home_dock_hide_dock"
app:isPreferenceVisible="false" />

<SwitchPreference
android:defaultValue="false"
android:dependency="prefs_key_home_dock_hide_dock"
android:key="prefs_key_home_dock_slide_up_only_show_dock"
android:summary="@string/home_dock_slide_up_only_show_dock_desc"
android:title="@string/home_dock_slide_up_only_show_dock"
app:isPreferenceVisible="false" />

<PreferenceCategory>
<SwitchPreference
android:defaultValue="false"
Expand Down Expand Up @@ -128,15 +144,4 @@
android:dependency="prefs_key_home_dock_bg_custom_enable" />-->

</PreferenceCategory>
<SwitchPreference
android:defaultValue="false"
android:key="prefs_key_home_dock_slide_up_only_show_dock"
android:summary="@string/home_dock_slide_up_only_show_dock_desc"
android:title="@string/home_dock_slide_up_only_show_dock" />

<SwitchPreference
android:defaultValue="false"
android:key="prefs_key_home_dock_hide_dock"
android:summary="@string/home_dock_hide_dock_desc"
android:title="@string/home_dock_hide_dock" />
</PreferenceScreen>

0 comments on commit 40e6590

Please sign in to comment.