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

Commit 905828c7 authored by Lucas Dupin's avatar Lucas Dupin Committed by Automerger Merge Worker
Browse files

Merge "Right align pwd field when space is tight" into rvc-dev am: b157e3ce am: aed8718f

Change-Id: I7dd11abfacdfd7cd0fd53c3fb074a522cb3e6827
parents 382cbc90 aed8718f
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -164,7 +164,9 @@ public class PasswordTextView extends View {
                currentDrawPosition = getPaddingLeft();
                currentDrawPosition = getPaddingLeft();
            }
            }
        } else {
        } else {
            currentDrawPosition = getWidth() / 2 - totalDrawingWidth / 2;
            float maxRight = getWidth() - getPaddingRight() - totalDrawingWidth;
            float center = getWidth() / 2f - totalDrawingWidth / 2f;
            currentDrawPosition = center > 0 ? center : maxRight;
        }
        }
        int length = mTextChars.size();
        int length = mTextChars.size();
        Rect bounds = getCharBounds();
        Rect bounds = getCharBounds();