mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 08:01:50 +01:00
Workaround word iterator bug Android <= M (EditText)
This commit is contained in:
@@ -111,7 +111,7 @@ public class FixedTextView extends AppCompatTextView {
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent event) {
|
||||
// https://issuetracker.google.com/issues/37068143
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M &&
|
||||
if ((BuildConfig.DEBUG || Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) &&
|
||||
hasSelection() &&
|
||||
event.getActionMasked() == MotionEvent.ACTION_DOWN) {
|
||||
CharSequence text = getText();
|
||||
|
||||
Reference in New Issue
Block a user