1
0
Fork 0
mirror of https://github.com/jrpie/Launcher.git synced 2025-05-02 16:50:56 +02:00

Merge app menus into one View all apps menu

+ Apps can be launched
+ Apps can be removed
+ In the `Choose App` for action menu, the delete option is hidden
+ The recycler is a little faster as I asynchronously cache it in 
`onCreate`
This commit is contained in:
Finn M Glas 2020-05-27 12:24:37 +02:00
parent 9fa009bf99
commit 52c9a99e01
No known key found for this signature in database
GPG key ID: 25037A2E81AB459C
11 changed files with 61 additions and 51 deletions

View file

@ -160,10 +160,10 @@
</TableLayout>
<Button
android:id="@+id/fragment_settings_apps_launch_btn"
android:id="@+id/fragment_settings_apps_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_launch"
android:text="@string/settings_apps"
android:textAllCaps="false" />
<Button
@ -173,10 +173,4 @@
android:text="@string/settings_install"
android:textAllCaps="false" />
<Button
android:id="@+id/fragment_settings_apps_remove_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/settings_uninstall"
android:textAllCaps="false" />
</LinearLayout>

View file

@ -17,14 +17,29 @@
<TextView
android:id="@+id/choose_row_app_name"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="60sp"
android:layout_marginLeft="60sp"
android:layout_marginEnd="5dp"
android:layout_marginRight="5dp"
android:gravity="start"
android:text=""
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/choose_row_app_delete"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
app:layout_constraintTop_toTopOf="parent" />
<com.finnmglas.launcher.extern.FontAwesome
android:id="@+id/choose_row_app_delete"
android:layout_width="20sp"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/fas_trash"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -26,8 +26,7 @@
<string name="settings_select_launcher">Launcher wählen</string>
<string name="settings_reset">Zurücksetzen</string>
<string name="settings_reset_message">All deine Einstellungen gehen verloren. Weitermachen?</string>
<string name="settings_launch">Apps öffnen</string>
<string name="settings_uninstall">Apps entfernen</string>
<string name="settings_apps">Alle Anwendungen</string>
<string name="settings_install">Apps installieren</string>
<string name="settings_home">Zurück</string>
@ -46,8 +45,7 @@
<!-- Choose Activity -->
<string name="choose_title">App wählen</string>
<string name="choose_title_launch">Apps öffnen</string>
<string name="choose_title_remove">Apps entfernen</string>
<string name="choose_title_view">Alle Apps</string>
<string name="choose_back_settings">Zurück</string>

View file

@ -26,9 +26,8 @@
<string name="settings_select_launcher">Choisir Launcher</string>
<string name="settings_reset">Réinitialiser</string>
<string name="settings_reset_message">Vous allez supprimer toutes vos préférences. Continuer?</string>
<string name="settings_launch">Lancer apps</string>
<string name="settings_uninstall">Désinstaller apps</string>
<string name="settings_install">Installer apps</string>
<string name="settings_apps">Toutes les applications</string>
<string name="settings_install">Installer applications</string>
<string name="settings_home">Retourner</string>
<string name="settings_toast_store_not_found">Pas trouvé le PlayStore</string>
@ -46,8 +45,7 @@
<!-- Choose Activity -->
<string name="choose_title">Choisir App</string>
<string name="choose_title_launch">Lancer Apps</string>
<string name="choose_title_remove">Désinstaller</string>
<string name="choose_title_view">Applications</string>
<string name="choose_back_settings">Retourner</string>

View file

@ -10,6 +10,7 @@
<string name="fas_calendar" translatable="false">&#xf133;</string>
<string name="fas_donate" translatable="false">&#xf4b9;</string>
<string name="fas_share" translatable="false">&#xf064;</string>
<string name="fas_trash" translatable="false">&#xf1f8;</string>
<!-- icons that can be used with type="brands" -->
<string name="fab_apple" translatable="false">&#xf179;</string>

View file

@ -34,9 +34,8 @@
<string name="settings_select_launcher">Select Launcher</string>
<string name="settings_reset">Reset Settings</string>
<string name="settings_reset_message">You are going to discard all your preferences. Continue?</string>
<string name="settings_launch">Launch Apps</string>
<string name="settings_uninstall">Uninstall Apps</string>
<string name="settings_install">Install Apps</string>
<string name="settings_apps">View all apps</string>
<string name="settings_install">Install apps</string>
<string name="settings_home">Back Home</string>
<string name="settings_toast_store_not_found">PlayStore not found</string>
@ -55,8 +54,7 @@
<!-- Choose Activity -->
<string name="choose_title">Choose App</string>
<string name="choose_title_launch">Launch Apps</string>
<string name="choose_title_remove">Uninstall Apps</string>
<string name="choose_title_view">All Apps</string>
<string name="choose_back_settings">Back to Settings</string>