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

Commit 7fa0b892 authored by Jiaming Liu's avatar Jiaming Liu Committed by Android (Google) Code Review
Browse files

Merge "[Divider] Fix divider surface visibility when width is 0" into main

parents 9f4c3f42 04db63f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1255,7 +1255,8 @@ class DividerPresenter implements View.OnTouchListener {

            // Update divider line surface visibility and color.
            // If a container is fully expanded, the divider line is invisible unless dragging.
            final boolean isDividerLineVisible = !mProperties.mIsDraggableExpandType || mIsDragging;
            final boolean isDividerLineVisible = mProperties.mDividerWidthPx > 0
                    && (!mProperties.mIsDraggableExpandType || mIsDragging);
            t.setVisibility(mDividerLineSurface, isDividerLineVisible);
            t.setColor(mDividerLineSurface, colorToFloatArray(
                    Color.valueOf(mProperties.mDividerAttributes.getDividerColor())));