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

Commit 22d1201c authored by Evan Rosky's avatar Evan Rosky
Browse files

Fixed PIN entry detecting gravity improperly

Bug: 28061319
Change-Id: I289584765203892b7dbac4220b515445b821d621
parent 8b704d44
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -148,8 +148,9 @@ public class PasswordTextView extends View {
    protected void onDraw(Canvas canvas) {
        float totalDrawingWidth = getDrawingWidth();
        float currentDrawPosition;
        if ((mGravity & Gravity.START) != 0) {
            if (getLayoutDirection() == LAYOUT_DIRECTION_RTL) {
        if ((mGravity & Gravity.HORIZONTAL_GRAVITY_MASK) == Gravity.LEFT) {
            if ((mGravity & Gravity.RELATIVE_LAYOUT_DIRECTION) != 0
                    && getLayoutDirection() == LAYOUT_DIRECTION_RTL) {
                currentDrawPosition = getWidth() - getPaddingRight() - totalDrawingWidth;
            } else {
                currentDrawPosition = getPaddingLeft();