Merge "Re-set PROCESS_TEXT selection if nothing was returned." into mnc-dr-dev am: 3bd3655fd0 am: 9e97c20ed9 am: 0eef4ab567
am: 4d14e65cdf
* commit '4d14e65cdf968ba43e47fe79e7b6d7e62d8b2ed1':
Re-set PROCESS_TEXT selection if nothing was returned.
This commit is contained in:
@@ -1478,7 +1478,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (mText instanceof Spannable) {
|
||||
// Reset the selection.
|
||||
stopTextActionMode();
|
||||
Selection.setSelection((Spannable) mText, getSelectionStart(), getSelectionEnd());
|
||||
}
|
||||
|
||||
if (mEditor.hasSelectionController()) {
|
||||
mEditor.startSelectionActionMode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user