|
|
|
@ -87,7 +87,6 @@ public class EditTextCompose extends FixedEditText {
|
|
|
|
private boolean undo_manager;
|
|
|
|
private boolean undo_manager;
|
|
|
|
private boolean paste_plain;
|
|
|
|
private boolean paste_plain;
|
|
|
|
private boolean paste_quote;
|
|
|
|
private boolean paste_quote;
|
|
|
|
private boolean lastSelected = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public EditTextCompose(Context context) {
|
|
|
|
public EditTextCompose(Context context) {
|
|
|
|
super(context);
|
|
|
|
super(context);
|
|
|
|
@ -568,13 +567,9 @@ public class EditTextCompose extends FixedEditText {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void onSelectionChanged(int selStart, int selEnd) {
|
|
|
|
protected void onSelectionChanged(int selStart, int selEnd) {
|
|
|
|
boolean has = hasSelection();
|
|
|
|
super.onSelectionChanged(selStart, selEnd);
|
|
|
|
if (has != lastSelected) {
|
|
|
|
if (selectionListener != null)
|
|
|
|
lastSelected = has;
|
|
|
|
selectionListener.onSelected(hasSelection());
|
|
|
|
super.onSelectionChanged(selStart, selEnd);
|
|
|
|
|
|
|
|
if (selectionListener != null)
|
|
|
|
|
|
|
|
selectionListener.onSelected(has);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
|