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

Commit 8481b6b6 authored by William Leshner's avatar William Leshner Committed by Android (Google) Code Review
Browse files

Merge "Allow "customize" button label to marquee." into main

parents 04d773a2 4a2eb6ac
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -165,11 +165,17 @@ public class DreamAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
                return;
            }

            if (dreamsV2()) {
                customizeButton.setEllipsize(TextUtils.TruncateAt.MARQUEE);
                customizeButton.setSingleLine();
                customizeButton.setSelected(true);
            } else {
                customizeButton.setSelected(false);
            }
            customizeButton.setVisibility(
                    item.allowCustomization() && mEnabled ? View.VISIBLE : View.GONE);

            customizeButton.setOnClickListener(v -> item.onCustomizeClicked());
            customizeButton.setSelected(false);
            customizeButton.setContentDescription(
                    mContext.getResources().getString(R.string.customize_button_description,
                            item.getTitle()));