mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 15:40:59 +01:00
Check for Android 6.0 for word iterator work around
This commit is contained in:
@@ -111,9 +111,9 @@ public class FixedTextView extends AppCompatTextView {
|
||||
@Override
|
||||
public boolean dispatchTouchEvent(MotionEvent event) {
|
||||
// https://issuetracker.google.com/issues/37068143
|
||||
if ((BuildConfig.DEBUG || Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) &&
|
||||
hasSelection() &&
|
||||
event.getActionMasked() == MotionEvent.ACTION_DOWN) {
|
||||
if (event.getActionMasked() == MotionEvent.ACTION_DOWN &&
|
||||
Build.VERSION.RELEASE.equals("6.0") && hasSelection()) {
|
||||
// Remove selection
|
||||
CharSequence text = getText();
|
||||
setText(null);
|
||||
setText(text);
|
||||
|
||||
Reference in New Issue
Block a user