implement #45: show pinned shortcuts in app list
Some checks are pending
Android CI / build (push) Waiting to run

This commit is contained in:
Josia Pietsch 2025-03-05 00:31:43 +01:00
parent 1f825d6f00
commit 9fe1a37ed6
Signed by: jrpie
GPG key ID: E70B571D66986A2D
23 changed files with 467 additions and 138 deletions

View file

@ -80,7 +80,6 @@
android:minHeight="40dp"
tools:drawableLeft="@drawable/baseline_settings_24"
tools:text="Shortcut name" />
<!--
<Space
android:layout_width="match_parent"
android:layout_height="10dp" />
@ -90,8 +89,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:textColor"
android:checked="true"
android:text="@string/pin_shortcut_switch_visible" />
-->
<Space
android:layout_width="match_parent"
@ -103,8 +102,21 @@
android:layout_height="wrap_content"
android:text="@string/pin_shortcut_button_bind" />
<Space
android:layout_width="match_parent"
android:layout_height="10dp" />
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/pin_shortcut_button_ok"
android:layout_margin="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/pin_shortcut_button_ok"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -11,6 +11,7 @@
<string name="settings_internal_version_code_key" translatable="false">internal.version_code</string>
<string name="settings_apps_favorites_key" translatable="false">apps.favorites</string>
<string name="settings_apps_hidden_key" translatable="false">apps.hidden</string>
<string name="settings_apps_pinned_shortcuts_key" translatable="false">apps.pinned_shortcuts</string>
<string name="settings_apps_custom_names_key" translatable="false">apps.custom_names</string>
<string name="settings_apps_hide_bound_apps_key" translatable="false">apps.hide_bound_apps</string>
<string name="settings_apps_hide_paused_apps_key" translatable="false">apps.hide_paused_apps</string>

View file

@ -263,6 +263,7 @@
<!-- Pin shortcuts -->
<string name="pin_shortcut_title">Add Shortcut</string>
<string name="pin_shortcut_button_bind">Bind to gesture</string>
<string name="pin_shortcut_button_ok">Ok</string>
<string name="pin_shortcut_switch_visible">Show in app list</string>
<!--