From d6da1ffb50c387a95c5b9a1b2fb60ac67e4ed268 Mon Sep 17 00:00:00 2001 From: Louis Pullen-Freilich Date: Mon, 4 Feb 2019 17:07:52 +0000 Subject: [PATCH] Adds mShowCursor to dark-grey list above P This was being used by developers to work out when to 'blink' their custom cursors using custom drawables. Now that TextView has a setTextCursorDrawable method, developers should use that instead to set a custom cursor, and shouldn't need to reflect on this value. If they still need more customization than setting a custom drawable, they should handle the blinking themselves - no need to reflect on an internal timestamp. Bug: b/123769485 Test: n/a Change-Id: I7817b2b83b19a3fdb8922c718720dd9ca5e8b291 --- core/java/android/widget/Editor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index c38566b87d9c8..03d822476bb61 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -273,7 +273,7 @@ public class Editor { boolean mDiscardNextActionUp; boolean mIgnoreActionUpEvent; - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123769485) private long mShowCursor; private boolean mRenderCursorRegardlessTiming; private Blink mBlink;