google-developer-training/android-advanced

Bug in CustomEditText Touch Listener

Opened this issue · 1 comments

if (getLayoutDirection() == LAYOUT_DIRECTION_RTL) {
// If RTL, get the end of the button on the left side.
clearButtonEnd = mClearButtonImage
.getIntrinsicWidth() + getPaddingStart();

This line comes from the implementation of touch listener in EditTextWithClear file. If the layout direction is RTL, the getPaddingEnd() should be used instead of getPaddingStart(). In RTL, getPaddingStart will give padding on the right side and getPaddingEnd will give padding on the left side.

@aleksinthecloud Can I work on this?