Prevent deletion of auto fixed addresses

This commit is contained in:
M66B 2022-06-19 07:54:41 +02:00
parent 36eef0f2f4
commit e0c54d5d3d
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ public class EditTextMultiAutoComplete extends AppCompatMultiAutoCompleteTextVie
if (spans.length == 1) {
int start = edit.getSpanStart(spans[0]);
int end = edit.getSpanEnd(spans[0]);
edit.delete(start, end);
if (backspace > start)
edit.delete(start, end);
}
} catch (Throwable ex) {
Log.e(ex);