Commit c542f97d authored by 0xd9a's avatar 0xd9a
Browse files

Add some content descriptions

parent 8f53e6f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1697,9 +1697,11 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
                if (holder.binding.contentSpoiler.getVisibility() == View.VISIBLE) {
                    statusDraft.spoilerChecked = false;
                    holder.binding.contentSpoiler.setVisibility(View.GONE);
                    holder.binding.buttonSensitive.setContentDescription(context.getString(R.string.add_content_warning));
                } else {
                    holder.binding.contentSpoiler.setVisibility(View.VISIBLE);
                    statusDraft.spoilerChecked = true;
                    holder.binding.buttonSensitive.setContentDescription(context.getString(R.string.remove_content_warning));
                }
            });
            //Last compose drawer
+3 −3
Original line number Diff line number Diff line
@@ -707,7 +707,7 @@
                    android:layout_height="48dp"
                    android:adjustViewBounds="true"
                    android:layout_gravity="center"
                    android:contentDescription="@string/reblog_add"
                    android:contentDescription="@string/action_reblog"
                    app:activeImage="@drawable/ic_round_repeat_active_24"
                    app:iconSize="28dp"
                    app:inactiveImage="@drawable/ic_round_repeat_24"
@@ -734,7 +734,7 @@
                android:adjustViewBounds="true"
                android:background="@color/transparent"
                android:clickable="true"
                android:contentDescription="@string/translate"
                android:contentDescription="@string/action_quote"
                android:focusable="true"
                android:src="@drawable/ic_baseline_format_quote_24"
                android:visibility="gone"
@@ -760,7 +760,7 @@
                    android:layout_height="48dp"
                    android:layout_gravity="center"
                    android:adjustViewBounds="true"
                    android:contentDescription="@string/favourite_add"
                    android:contentDescription="@string/action_favourite"
                    app:activeImage="@drawable/ic_round_star_24"
                    app:animationSpeed="1.5"
                    app:inactiveImage="@drawable/ic_round_star_border_24"
+11 −0
Original line number Diff line number Diff line
@@ -179,6 +179,7 @@
            android:layout_height="wrap_content"
            android:layout_marginVertical="6dp"
            android:layout_marginStart="6dp"
            android:contentDescription="@string/open_new_attachment_panel"
            app:icon="@drawable/ic_compose_attach"
            app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
            app:layout_constraintStart_toStartOf="parent"
@@ -191,6 +192,7 @@
            android:layout_height="wrap_content"
            android:layout_marginVertical="6dp"
            android:checkable="true"
            android:contentDescription="@string/add_content_warning"
            app:icon="@drawable/ic_compose_sensitive"
            app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
            app:layout_constraintStart_toEndOf="@id/button_attach"
@@ -203,6 +205,7 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginVertical="6dp"
            android:contentDescription="@string/change_visibility"
            app:icon="@drawable/ic_compose_visibility_public"
            app:iconGravity="textStart"
            app:iconPadding="0dp"
@@ -216,6 +219,7 @@
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginVertical="6dp"
            android:contentDescription="@string/set_language"
            android:fontFamily="monospace"
            android:minWidth="72dp"
            app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
@@ -253,6 +257,7 @@
            android:layout_height="wrap_content"
            android:layout_marginVertical="6dp"
            android:layout_marginEnd="6dp"
            android:contentDescription="@string/action_publish"
            app:icon="@drawable/ic_compose_post"
            app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
            app:layout_constraintEnd_toEndOf="parent"
@@ -276,6 +281,7 @@
            style="@style/Widget.Material3.Button.IconButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/attach_images"
            app:icon="@drawable/ic_compose_attach_image" />

        <com.google.android.material.button.MaterialButton
@@ -283,6 +289,7 @@
            style="@style/Widget.Material3.Button.IconButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/attach_audio"
            app:icon="@drawable/ic_compose_attach_audio" />

        <com.google.android.material.button.MaterialButton
@@ -290,6 +297,7 @@
            style="@style/Widget.Material3.Button.IconButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/attach_videos"
            app:icon="@drawable/ic_compose_attach_video" />

        <com.google.android.material.button.MaterialButton
@@ -297,6 +305,7 @@
            style="@style/Widget.Material3.Button.IconButton.Outlined"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/close_new_attachment_panel"
            app:icon="@drawable/ic_baseline_close_24" />

        <com.google.android.material.button.MaterialButton
@@ -304,6 +313,7 @@
            style="@style/Widget.Material3.Button.IconButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/add_poll"
            app:icon="@drawable/ic_compose_poll" />

        <com.google.android.material.button.MaterialButton
@@ -311,6 +321,7 @@
            style="@style/Widget.Material3.Button.IconButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:contentDescription="@string/attach_files"
            app:icon="@drawable/ic_compose_attach_more" />

        <androidx.appcompat.widget.LinearLayoutCompat
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_more"
        android:contentDescription="@string/more_options"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_gravity="center"
            android:contentDescription="@string/more_options"
            android:minWidth="48dp"
            app:icon="@drawable/ic_more" />

Loading