From 22902ac070b0dd7938c785ea1136f4682152b98e Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 29 Nov 2022 08:33:35 +0100 Subject: [PATCH] Fix some crashes --- app/src/main/AndroidManifest.xml | 8 ++++---- app/src/main/res/layout/activity_instance_social.xml | 4 +--- app/src/main/res/layout/activity_profile.xml | 6 +++--- app/src/main/res/layout/compose_attachment_item.xml | 8 ++++---- app/src/main/res/layout/drawer_follow.xml | 2 +- 5 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index cbb97072..b6e762eb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -287,15 +287,15 @@ android:name=".activities.InstanceActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:label="@string/action_about_instance" - android:theme="@style/MaterialAlertDialog.Material3" /> + android:theme="@style/Theme.Material3.Dark.Dialog.Alert" /> + android:theme="@style/Theme.Material3.Dark.Dialog.Alert" /> + android:theme="@style/Theme.Material3.Dark.Dialog.Alert" /> @@ -310,7 +310,7 @@ + android:theme="@style/Theme.Material3.Dark.Dialog.Alert" /> + android:textAllCaps="false" /> diff --git a/app/src/main/res/layout/activity_profile.xml b/app/src/main/res/layout/activity_profile.xml index 88d37276..6f111b5d 100644 --- a/app/src/main/res/layout/activity_profile.xml +++ b/app/src/main/res/layout/activity_profile.xml @@ -110,7 +110,7 @@ android:layout_marginEnd="6dp" android:contentDescription="@string/set_notify" android:scaleType="fitCenter" - android:icon="@drawable/ic_baseline_notifications_off_24" + app:icon="@drawable/ic_baseline_notifications_off_24" android:visibility="gone" app:layout_constraintEnd_toStartOf="@id/avatar_container" app:layout_constraintTop_toBottomOf="@id/banner_container" @@ -125,7 +125,7 @@ android:layout_marginTop="6dp" android:contentDescription="@string/edit_profile" android:scaleType="fitCenter" - android:icon="@drawable/ic_baseline_edit_24" + app:icon="@drawable/ic_baseline_edit_24" android:visibility="gone" app:layout_constraintStart_toEndOf="@id/avatar_container" app:layout_constraintTop_toBottomOf="@id/banner_container" @@ -353,7 +353,7 @@ android:layout_marginTop="6dp" android:contentDescription="@string/display_remote_profile" android:scaleType="fitCenter" - android:icon="@drawable/ic_baseline_manage_search_24" /> + app:icon="@drawable/ic_baseline_manage_search_24" /> diff --git a/app/src/main/res/layout/compose_attachment_item.xml b/app/src/main/res/layout/compose_attachment_item.xml index c46df404..156827b1 100644 --- a/app/src/main/res/layout/compose_attachment_item.xml +++ b/app/src/main/res/layout/compose_attachment_item.xml @@ -45,7 +45,7 @@ android:layout_height="36dp" android:adjustViewBounds="true" android:backgroundTint="@color/editColor" - android:icon="@drawable/ic_baseline_mode_edit_24" + app:icon="@drawable/ic_baseline_mode_edit_24" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -56,7 +56,7 @@ android:layout_height="36dp" android:adjustViewBounds="true" android:backgroundTint="@color/errorColor" - android:icon="@drawable/ic_compose_attachment_remove" + app:icon="@drawable/ic_compose_attachment_remove" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -66,7 +66,7 @@ android:layout_width="48dp" android:layout_height="48dp" android:adjustViewBounds="true" - android:icon="@drawable/ic_compose_attachment_order_up" + app:icon="@drawable/ic_compose_attachment_order_up" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/preview" /> @@ -94,7 +94,7 @@ android:layout_width="48dp" android:layout_height="48dp" android:adjustViewBounds="true" - android:icon="@drawable/ic_compose_attachment_order_down" + app:icon="@drawable/ic_compose_attachment_order_down" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/preview" /> diff --git a/app/src/main/res/layout/drawer_follow.xml b/app/src/main/res/layout/drawer_follow.xml index 7d9a619d..98779605 100644 --- a/app/src/main/res/layout/drawer_follow.xml +++ b/app/src/main/res/layout/drawer_follow.xml @@ -116,7 +116,7 @@ android:layout_height="48dp" android:layout_marginStart="6dp" android:adjustViewBounds="true" - android:icon="@drawable/ic_baseline_close_24" /> + app:icon="@drawable/ic_baseline_close_24" />