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

Commit 1a2a6933 authored by Cassy Chun-Crogan's avatar Cassy Chun-Crogan
Browse files

[DocsUI M3] Show the thumbnail stroke when selected too

Show the stroke around the thumbnail always, including
when the item is selected. This follows the figma spec.

Bug: 381962394
Test: m DocumentsUIGoogle && manual inspection
Flag: com.android.documentsui.flags.use_material3
Change-Id: I6f72fcf4e1b04375e7a3413ae71e613ae410b23d
parent 92254810
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -165,15 +165,6 @@ final class GridDocumentHolder extends DocumentHolder {
                mIconMimeSm.setAlpha(1f - checkAlpha);
            }
        }

        // Do not show stroke when selected, only show stroke when not selected if it has thumbnail.
        if (mIconWrapper != null) {
            if (selected) {
                mIconWrapper.setStrokeWidth(0);
            } else if (mIconThumb.getDrawable() != null) {
                mIconWrapper.setStrokeWidth(mThumbnailStrokeWidth);
            }
        }
    }

    @Override