Loading core/java/android/widget/TextView.java +3 −6 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -4464,6 +4465,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener return super.onKeyUp(keyCode, event); } break; } if (mInput != null) Loading Loading @@ -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; Loading Loading @@ -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); Loading Loading
core/java/android/widget/TextView.java +3 −6 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -4464,6 +4465,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener return super.onKeyUp(keyCode, event); } break; } if (mInput != null) Loading Loading @@ -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; Loading Loading @@ -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); Loading