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