|
|
@ -5615,12 +5615,15 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
if (target == null)
|
|
|
|
if (target == null)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int s = (start < end ? start : end);
|
|
|
|
|
|
|
|
int e = (start < end ? end : start);
|
|
|
|
|
|
|
|
|
|
|
|
getMainHandler().post(new Runnable() {
|
|
|
|
getMainHandler().post(new Runnable() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
public void run() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (target instanceof EditText && start >= 0)
|
|
|
|
if (target instanceof EditText && s >= 0)
|
|
|
|
((EditText) target).setSelection(start, end < 0 ? start : end);
|
|
|
|
((EditText) target).setSelection(s, e < 0 ? s : e);
|
|
|
|
|
|
|
|
|
|
|
|
target.requestFocus();
|
|
|
|
target.requestFocus();
|
|
|
|
|
|
|
|
|
|
|
|