mirror of
https://github.com/FatttSnake/OxygenToolbox.git
synced 2026-04-05 04:41:26 +08:00
Fixed soft keyboard input flashback.
This commit is contained in:
@@ -119,7 +119,11 @@ public class MainActivity extends BaseActivityNormal {
|
||||
imageViewConvert.setEnabled(charSequence.length() != 0);
|
||||
if (!Pattern.compile(HexConversionUtils.getRegExp(baseFrom)).matcher(charSequence).matches()) {
|
||||
editTextFrom.setText(beforeText.toString());
|
||||
editTextFrom.setSelection(beforeText.toString().length() - 1);
|
||||
try {
|
||||
editTextFrom.setSelection(beforeText.toString().length() - 1);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
textViewTo.setText(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user