From d590b1a719f0dbb992812dc064fff332e3de276f Mon Sep 17 00:00:00 2001 From: Filip Pavlis Date: Wed, 6 Feb 2019 13:47:19 +0000 Subject: [PATCH] Restrict FLAG_SUPPORT_STATIC_TRANSFORMATIONS usage There is a proper setter for it already called setStaticTransformationsEnabled. There is not a strong motivation for a getter as this is only used to instruct the class to invoke getChildStaticTransformation when a child is drawn. And any class setting this flag to true is supposed to override that getter. Also I was not able to find any reasonable public usages of the flag. Bug: b/123769647 Test: N/A Change-Id: I14ea7d560a5318cc372ac84dc5a1daad626e4f7e --- core/java/android/view/ViewGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index d2b40f75a6a81..7e7384e8f8681 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -314,7 +314,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager * * {@hide} */ - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123769647) protected static final int FLAG_SUPPORT_STATIC_TRANSFORMATIONS = 0x800; // UNUSED FLAG VALUE: 0x1000;