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

Commit dedb2689 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...

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

Change-Id: Ib0000ba1dbadbab488e63427aa1a151191e5a888
parents f75589c2 905828c7
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();