Loading packages/SystemUI/src/com/android/keyguard/PasswordTextView.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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(); Loading Loading
packages/SystemUI/src/com/android/keyguard/PasswordTextView.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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(); Loading