From eefe9670bdbfefacaa0077858e2ef14c08ace6aa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 22:44:58 +0000 Subject: [PATCH 1/3] Initial plan From 357863b54fc9e6996ce1068b4f35e3fe146759c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 22:49:37 +0000 Subject: [PATCH 2/3] Fix D-pad navigation issues in main and compose activities Co-authored-by: JMTDI <212186038+JMTDI@users.noreply.github.com> --- presentation/src/main/res/layout/compose_activity.xml | 2 ++ presentation/src/main/res/layout/main_activity.xml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/presentation/src/main/res/layout/compose_activity.xml b/presentation/src/main/res/layout/compose_activity.xml index 334f752a0..d58ad216d 100644 --- a/presentation/src/main/res/layout/compose_activity.xml +++ b/presentation/src/main/res/layout/compose_activity.xml @@ -676,6 +676,7 @@ android:layout_height="44dp" android:layout_marginStart="12dp" android:background="@drawable/circle_focusable" + android:backgroundTint="?attr/bubbleColor" android:contentDescription="@string/compose_attach_cd" android:elevation="4dp" android:padding="10dp" @@ -687,6 +688,7 @@ android:nextFocusUp="@+id/toolbar" app:layout_constraintBottom_toBottomOf="@id/messageBackground" app:layout_constraintStart_toStartOf="parent" + app:tint="?android:attr/textColorSecondary" tools:backgroundTint="@color/tools_theme" tools:tint="@color/textPrimaryDark" /> diff --git a/presentation/src/main/res/layout/main_activity.xml b/presentation/src/main/res/layout/main_activity.xml index 6107a7171..4f19c0628 100644 --- a/presentation/src/main/res/layout/main_activity.xml +++ b/presentation/src/main/res/layout/main_activity.xml @@ -58,7 +58,7 @@ android:focusableInTouchMode="true" android:nextFocusLeft="@+id/recyclerView" android:nextFocusRight="@+id/toolbarSearch" - android:nextFocusDown="@+id/toolbarSearch" + android:nextFocusDown="@+id/recyclerView" app:tint="?android:attr/textColorPrimary" /> Date: Fri, 16 Jan 2026 23:09:29 +0000 Subject: [PATCH 3/3] Fix D-pad navigation and attach menu highlighting - Add nextFocusUp to messageList in compose activity for toolbar navigation - Create new drawable files circle_attach_menu.xml and rounded_rectangle_attach_menu.xml - Update attach menu items to use new drawables without backgroundTint for proper focus highlighting Co-authored-by: JMTDI <212186038+JMTDI@users.noreply.github.com> --- .../main/res/drawable/circle_attach_menu.xml | 43 +++++++++++++++++++ .../rounded_rectangle_attach_menu.xml | 43 +++++++++++++++++++ .../src/main/res/layout/compose_activity.xml | 37 ++++++---------- 3 files changed, 99 insertions(+), 24 deletions(-) create mode 100644 presentation/src/main/res/drawable/circle_attach_menu.xml create mode 100644 presentation/src/main/res/drawable/rounded_rectangle_attach_menu.xml diff --git a/presentation/src/main/res/drawable/circle_attach_menu.xml b/presentation/src/main/res/drawable/circle_attach_menu.xml new file mode 100644 index 000000000..e2f3b131a --- /dev/null +++ b/presentation/src/main/res/drawable/circle_attach_menu.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/presentation/src/main/res/drawable/rounded_rectangle_attach_menu.xml b/presentation/src/main/res/drawable/rounded_rectangle_attach_menu.xml new file mode 100644 index 000000000..fac087f80 --- /dev/null +++ b/presentation/src/main/res/drawable/rounded_rectangle_attach_menu.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/presentation/src/main/res/layout/compose_activity.xml b/presentation/src/main/res/layout/compose_activity.xml index d58ad216d..866441843 100644 --- a/presentation/src/main/res/layout/compose_activity.xml +++ b/presentation/src/main/res/layout/compose_activity.xml @@ -39,6 +39,7 @@ android:focusableInTouchMode="true" android:descendantFocusability="afterDescendants" android:nextFocusDown="@+id/message" + android:nextFocusUp="@+id/toolbar" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layout_constraintBottom_toTopOf="@id/messageBackground" app:layout_constraintEnd_toEndOf="parent" @@ -424,8 +425,7 @@ android:layout_width="40dp" android:layout_height="40dp" android:layout_marginBottom="12dp" - android:background="@drawable/circle_focusable" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/circle_attach_menu" android:contentDescription="@string/compose_contact_cd" android:elevation="4dp" android:padding="10dp" @@ -445,8 +445,7 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_marginStart="8dp" - android:background="@drawable/rounded_rectangle_focusable_4dp" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/rounded_rectangle_attach_menu" android:elevation="4dp" android:gravity="center_vertical" android:paddingStart="8dp" @@ -465,8 +464,7 @@ android:layout_width="40dp" android:layout_height="40dp" android:layout_marginBottom="12dp" - android:background="@drawable/circle_focusable" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/circle_attach_menu" android:contentDescription="@string/compose_schedule_cd" android:elevation="4dp" android:padding="10dp" @@ -487,8 +485,7 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_marginStart="8dp" - android:background="@drawable/rounded_rectangle_focusable_4dp" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/rounded_rectangle_attach_menu" android:elevation="4dp" android:gravity="center_vertical" android:paddingStart="8dp" @@ -507,8 +504,7 @@ android:layout_width="40dp" android:layout_height="40dp" android:layout_marginBottom="12dp" - android:background="@drawable/circle_focusable" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/circle_attach_menu" android:contentDescription="@string/compose_attach_file_cd" android:elevation="4dp" android:padding="10dp" @@ -530,8 +526,7 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_marginStart="8dp" - android:background="@drawable/rounded_rectangle_focusable_4dp" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/rounded_rectangle_attach_menu" android:elevation="4dp" android:gravity="center_vertical" android:paddingStart="8dp" @@ -550,8 +545,7 @@ android:layout_width="40dp" android:layout_height="40dp" android:layout_marginBottom="12dp" - android:background="@drawable/circle_focusable" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/circle_attach_menu" android:contentDescription="@string/compose_audio_message_cd" android:elevation="4dp" android:padding="10dp" @@ -572,8 +566,7 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_marginStart="8dp" - android:background="@drawable/rounded_rectangle_focusable_4dp" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/rounded_rectangle_attach_menu" android:elevation="4dp" android:gravity="center_vertical" android:paddingStart="8dp" @@ -592,8 +585,7 @@ android:layout_width="40dp" android:layout_height="40dp" android:layout_marginBottom="12dp" - android:background="@drawable/circle_focusable" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/circle_attach_menu" android:contentDescription="@string/compose_gallery_cd" android:elevation="4dp" android:padding="10dp" @@ -614,8 +606,7 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_marginStart="8dp" - android:background="@drawable/rounded_rectangle_focusable_4dp" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/rounded_rectangle_attach_menu" android:elevation="4dp" android:gravity="center_vertical" android:paddingStart="8dp" @@ -634,8 +625,7 @@ android:layout_width="40dp" android:layout_height="40dp" android:layout_marginBottom="16dp" - android:background="@drawable/circle_focusable" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/circle_attach_menu" android:contentDescription="@string/compose_camera_cd" android:elevation="4dp" android:padding="10dp" @@ -655,8 +645,7 @@ android:layout_width="wrap_content" android:layout_height="32dp" android:layout_marginStart="8dp" - android:background="@drawable/rounded_rectangle_focusable_4dp" - android:backgroundTint="@color/tools_theme" + android:background="@drawable/rounded_rectangle_attach_menu" android:elevation="4dp" android:gravity="center_vertical" android:paddingStart="8dp"