OSDN Git Service

[Magnifier - 2] Turn magnifier ON
authorAndrei Stingaceanu <stg@google.com>
Wed, 4 Oct 2017 10:27:08 +0000 (11:27 +0100)
committerAndrei Stingaceanu <stg@google.com>
Wed, 4 Oct 2017 10:27:08 +0000 (11:27 +0100)
Flip the flag for turning ON the magnifier attached
to Editor's handles.

Bug: 66657373
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: I644c2b834a0c630e5a84a0b948b8667ea988eea6

core/java/android/widget/Editor.java

index 8003575..afd1188 100644 (file)
@@ -141,7 +141,7 @@ public class Editor {
     private static final boolean DEBUG_UNDO = false;
     // Specifies whether to use or not the magnifier when pressing the insertion or selection
     // handles.
-    private static final boolean FLAG_USE_MAGNIFIER = false;
+    private static final boolean FLAG_USE_MAGNIFIER = true;
 
     static final int BLINK = 500;
     private static final int DRAG_SHADOW_MAX_TEXT_LENGTH = 20;