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

Commit e808621e authored by Tingting Wang's avatar Tingting Wang
Browse files

Shift checkboxes more to left.

BUG 29773516

Change-Id: I692dc639394ac35a250d3aa39ad56f1893e1d458
parent 6935e6d7
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ public class ContactListItemView extends ViewGroup
    private Drawable mActivatedBackgroundDrawable;
    private int mVideoCallIconSize = 32;
    private int mVideoCallIconMargin = 16;
    private int mGapFromScrollBar = 20;

    // Set in onLayout. Represent left and right position of the View on the screen.
    private int mLeftOffset;
@@ -651,14 +652,14 @@ public class ContactListItemView extends ViewGroup
        if (isVisible(mCheckBox)) {
            final int photoTop = topBound + (bottomBound - topBound - mCheckBoxHeight) / 2;
            if (mPhotoPosition == PhotoPosition.LEFT) {
                mCheckBox.layout(rightBound - mCheckBoxWidth,
                mCheckBox.layout(rightBound - mGapFromScrollBar - mCheckBoxWidth,
                        photoTop,
                        rightBound,
                        rightBound - mGapFromScrollBar,
                        photoTop + mCheckBoxHeight);
            } else {
                mCheckBox.layout(leftBound,
                mCheckBox.layout(leftBound + mGapFromScrollBar,
                        photoTop,
                        leftBound + mCheckBoxWidth,
                        leftBound + mGapFromScrollBar + mCheckBoxWidth,
                        photoTop + mCheckBoxHeight);
            }
        }