Force LTR to avoid blank view in RTL layout

Fixes #4
This commit is contained in:
Hamdy H. Khader
2018-05-21 23:30:24 +03:00
committed by GitHub
parent 9f90fe7dda
commit c9ac98d09d

View File

@@ -90,6 +90,9 @@ public class VerificationCodeEditText extends android.support.v7.widget.AppCompa
mSelectedBackgroundColor = ta.getColor(R.styleable.VerCodeEditText_selectedBackgroundColor, mSelectedBackgroundColor = ta.getColor(R.styleable.VerCodeEditText_selectedBackgroundColor,
getColor(android.R.color.darker_gray)); getColor(android.R.color.darker_gray));
ta.recycle(); ta.recycle();
// force LTR because of bug: https://github.com/JustKiddingBaby/VercodeEditText/issues/4
setLayoutDirection(LAYOUT_DIRECTION_LTR);
} }