diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java index c0e2c35a4..12ba7708b 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java @@ -49,6 +49,7 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; +import android.view.accessibility.AccessibilityEvent; import android.view.inputmethod.InputMethodManager; import android.widget.ArrayAdapter; import android.widget.Button; @@ -1506,6 +1507,7 @@ public class ComposeAdapter extends RecyclerView.Adapter holder.binding.attachmentChoicesPanel.setVisibility(View.GONE)); holder.binding.buttonVisibility.setOnClickListener(v -> { holder.binding.visibilityPanel.setVisibility(View.VISIBLE); + holder.binding.visibilityGroup.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED); holder.binding.buttonVisibility.setChecked(false); }); holder.binding.buttonCloseVisibilityPanel.setOnClickListener(v -> holder.binding.visibilityPanel.setVisibility(View.GONE)); diff --git a/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml b/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml index 69f8cf806..0ad55de14 100644 --- a/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml +++ b/app/src/main/res/layouts/mastodon/layout/drawer_status_compose.xml @@ -335,6 +335,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" + android:id="@+id/visibility_group" android:padding="6dp" app:singleSelection="true">