From 08b675370ad478e71103324f8133b416490810fd Mon Sep 17 00:00:00 2001 From: Sumir Kataria Date: Fri, 8 Feb 2019 11:31:22 -0800 Subject: [PATCH] Allow reflection access to ProgressBar#mOnlyIndeterminate. I think this one is fine to punt. The field applies to the default progress bar, which can only be indeterminate. However, if someone can't customize their themes and styles, they may end up in a situation where they need this to be different and there is no public API for it. Making a public API is messy because it is really hard to reason about and the behavior would be a no-op much of the time. It's better to avoid adding confusion for the majority of developers. Test: N/A Bug: 124049927 Change-Id: Ie63429831ec803d2d3c50464176c4e6f8a30ec33 --- core/java/android/widget/ProgressBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java index 6b48c6584ad29..627fc7cc81e40 100644 --- a/core/java/android/widget/ProgressBar.java +++ b/core/java/android/widget/ProgressBar.java @@ -203,7 +203,7 @@ public class ProgressBar extends View { private int mDuration; @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) private boolean mIndeterminate; - @UnsupportedAppUsage + @UnsupportedAppUsage(trackingBug = 124049927) private boolean mOnlyIndeterminate; private Transformation mTransformation; private AlphaAnimation mAnimation;