OSDN Git Service

Revert "[Magnifier-77] Show it on long press selection"
authorMihai Popa <popam@google.com>
Tue, 12 Feb 2019 12:02:32 +0000 (12:02 +0000)
committerMihai Popa <popam@google.com>
Tue, 12 Feb 2019 13:57:47 +0000 (13:57 +0000)
This reverts commit 88fbed49afaa657cca68b931c1d1aa03d33f1af3.

Reason for revert: We decided to punt this functionality to R, in order to keep consistency with WebView and Chrome. (b/119819194)

Change-Id: I625a8bca52687e3f15957f4dc4a0982c1ad28a2a

core/java/android/widget/Editor.java

index 9c21ba6..ded3be4 100644 (file)
@@ -6020,9 +6020,6 @@ public class Editor {
                     }
 
                     updateSelection(event);
-                    if (mTextView.hasSelection() && mEndHandle != null) {
-                        mEndHandle.updateMagnifier(event);
-                    }
                     break;
 
                 case MotionEvent.ACTION_UP:
@@ -6030,9 +6027,6 @@ public class Editor {
                         break;
                     }
                     updateSelection(event);
-                    if (mEndHandle != null) {
-                        mEndHandle.dismissMagnifier();
-                    }
 
                     // No longer dragging to select text, let the parent intercept events.
                     mTextView.getParent().requestDisallowInterceptTouchEvent(false);