Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c7a55ed authored by Lucas Silva's avatar Lucas Silva Committed by Automerger Merge Worker
Browse files

Add content description to screensaver customization button am: ca65b6e5

parents 05e4a2f5 ca65b6e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -14452,6 +14452,8 @@
    <!-- Button to customize the screensaver [CHAR LIMIT=20] -->
    <string name="customize_button_title">Customize</string>
    <!-- The content description for accessibility tools of the customize button. It specifies which screensaver the user is customizing [CHAR LIMIT=NONE] -->
    <string name="customize_button_description">Customize <xliff:g id="screensaver_name" example="Art Gallery">%1$s</xliff:g></string>
    <!-- Dialog body text used to explain a reboot is required after enabling freeform support for
    it to work [CHAR LIMIT=none] -->
+3 −0
Original line number Diff line number Diff line
@@ -129,6 +129,9 @@ public class DreamAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
                // This must be called AFTER itemView.setSelected above, in order to keep the
                // customize button in an unselected state.
                mCustomizeButton.setSelected(false);
                mCustomizeButton.setContentDescription(
                        mContext.getResources().getString(R.string.customize_button_description,
                                item.getTitle()));
            }

            setEnabledStateOnViews(itemView, mEnabled);