Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -56375,6 +56375,7 @@ package android.widget { ctor public ProgressBar(android.content.Context, android.util.AttributeSet); ctor public ProgressBar(android.content.Context, android.util.AttributeSet, int); ctor public ProgressBar(android.content.Context, android.util.AttributeSet, int, int); method @Nullable public android.graphics.drawable.Drawable getCurrentDrawable(); method public android.graphics.drawable.Drawable getIndeterminateDrawable(); method @Nullable public android.content.res.ColorStateList getIndeterminateTintList(); method @Nullable public android.graphics.PorterDuff.Mode getIndeterminateTintMode(); core/java/android/widget/ProgressBar.java +13 −3 Original line number Diff line number Diff line Loading @@ -211,7 +211,12 @@ public class ProgressBar extends View { private Drawable mIndeterminateDrawable; private Drawable mProgressDrawable; @UnsupportedAppUsage /** * Outside the framework, instead of accessing this directly, please use * {@link #getCurrentDrawable()}, {@link #setProgressDrawable(Drawable)}, * {@link #setIndeterminateDrawable(Drawable)} and their tiled versions. */ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) private Drawable mCurrentDrawable; private ProgressTintInfo mProgressTintInfo; Loading Loading @@ -1298,9 +1303,14 @@ public class ProgressBar extends View { } /** * @return The drawable currently used to draw the progress bar * Returns the drawable currently used to draw the progress bar. This will be * either {@link #getProgressDrawable()} or {@link #getIndeterminateDrawable()} * depending on whether the progress bar is in determinate or indeterminate mode. * * @return the drawable currently used to draw the progress bar */ Drawable getCurrentDrawable() { @Nullable public Drawable getCurrentDrawable() { return mCurrentDrawable; } Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -56375,6 +56375,7 @@ package android.widget { ctor public ProgressBar(android.content.Context, android.util.AttributeSet); ctor public ProgressBar(android.content.Context, android.util.AttributeSet, int); ctor public ProgressBar(android.content.Context, android.util.AttributeSet, int, int); method @Nullable public android.graphics.drawable.Drawable getCurrentDrawable(); method public android.graphics.drawable.Drawable getIndeterminateDrawable(); method @Nullable public android.content.res.ColorStateList getIndeterminateTintList(); method @Nullable public android.graphics.PorterDuff.Mode getIndeterminateTintMode();
core/java/android/widget/ProgressBar.java +13 −3 Original line number Diff line number Diff line Loading @@ -211,7 +211,12 @@ public class ProgressBar extends View { private Drawable mIndeterminateDrawable; private Drawable mProgressDrawable; @UnsupportedAppUsage /** * Outside the framework, instead of accessing this directly, please use * {@link #getCurrentDrawable()}, {@link #setProgressDrawable(Drawable)}, * {@link #setIndeterminateDrawable(Drawable)} and their tiled versions. */ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P) private Drawable mCurrentDrawable; private ProgressTintInfo mProgressTintInfo; Loading Loading @@ -1298,9 +1303,14 @@ public class ProgressBar extends View { } /** * @return The drawable currently used to draw the progress bar * Returns the drawable currently used to draw the progress bar. This will be * either {@link #getProgressDrawable()} or {@link #getIndeterminateDrawable()} * depending on whether the progress bar is in determinate or indeterminate mode. * * @return the drawable currently used to draw the progress bar */ Drawable getCurrentDrawable() { @Nullable public Drawable getCurrentDrawable() { return mCurrentDrawable; } Loading