Skip to content

Commit

Permalink
Rollback PR 126
Browse files Browse the repository at this point in the history
  • Loading branch information
chinalwb committed Oct 18, 2020
1 parent b3cc651 commit d7de08d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ARE/are/src/main/java/com/chinalwb/are/AREditText.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ private void init() {
// this.setMovementMethod(new AREMovementMethod());
this.setFocusableInTouchMode(true);
this.setBackgroundColor(Color.WHITE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
this.setInputType(EditorInfo.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD | EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
| EditorInfo.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
} else {
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
// this.setInputType(EditorInfo.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD | EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
// | EditorInfo.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
// } else {
this.setInputType(EditorInfo.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
| EditorInfo.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
}
// }
int padding = 8;
padding = Util.getPixelByDp(mContext, padding);
this.setPadding(padding, padding, padding, padding);
Expand Down

0 comments on commit d7de08d

Please sign in to comment.