Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e69b2860 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE Removed "Stop selecting text" option." into gingerbread

parents b94493fe d2420248
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -4305,6 +4305,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                }
                break;

                // Has to be done on key down (and not on key up) to correctly be intercepted.
            case KeyEvent.KEYCODE_BACK:
                if (mIsInTextSelectionMode) {
                    stopTextSelectionMode();
@@ -4464,6 +4465,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener

                    return super.onKeyUp(keyCode, event);
                }
                break;
        }

        if (mInput != null)
@@ -7330,7 +7332,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    // Context menu entries
    private static final int ID_SELECT_ALL = android.R.id.selectAll;
    private static final int ID_START_SELECTING_TEXT = android.R.id.startSelectingText;
    private static final int ID_STOP_SELECTING_TEXT = android.R.id.stopSelectingText;
    private static final int ID_CUT = android.R.id.cut;
    private static final int ID_COPY = android.R.id.copy;
    private static final int ID_PASTE = android.R.id.paste;
@@ -7377,10 +7378,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                startTextSelectionMode();
                return true;

            case ID_STOP_SELECTING_TEXT:
                stopTextSelectionMode();
                return true;

            case ID_CUT:                
                clip.setText(mTransformed.subSequence(min, max));
                ((Editable) mText).delete(min, max);