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

Commit 3c82e697 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[DocsUI M3] Uplift disabled state for grid" into main

parents be03471a 55f1f7eb
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -169,12 +169,14 @@ final class GridDocumentHolder extends DocumentHolder {

        float imgAlpha = enabled ? 1f : DISABLED_ALPHA;

        if (isUseMaterial3FlagEnabled()) {
            itemView.setAlpha(imgAlpha);
        } else {
            mIconMimeLg.setAlpha(imgAlpha);
        if (!isUseMaterial3FlagEnabled()) {
            mIconMimeSm.setAlpha(imgAlpha);
        }
            mIconThumb.setAlpha(imgAlpha);
        }
    }

    @Override
    public void bindPreviewIcon(boolean show, Function<View, Boolean> clickCallback) {
+4 −0
Original line number Diff line number Diff line
@@ -207,6 +207,10 @@ public class IconHelper {
        }

        if (loadedThumbnail) {
            if (isUseMaterial3FlagEnabled()) {
                // Show the thumbnail.
                iconThumb.setAlpha(1f);
            }
            hideImageView(iconMime);
        } else {
            // Add a mime icon if the thumbnail is not shown.