Merge "Allow top-level drawable container in progressDrawable" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
80252a92e5
@@ -1241,7 +1241,7 @@ public class ProgressBar extends View {
|
|||||||
private synchronized void doRefreshProgress(int id, int progress, boolean fromUser,
|
private synchronized void doRefreshProgress(int id, int progress, boolean fromUser,
|
||||||
boolean callBackToApp) {
|
boolean callBackToApp) {
|
||||||
float scale = mMax > 0 ? (float) progress / (float) mMax : 0;
|
float scale = mMax > 0 ? (float) progress / (float) mMax : 0;
|
||||||
final Drawable d = mCurrentDrawable;
|
final Drawable d = mCurrentDrawable.getCurrent();
|
||||||
if (d != null) {
|
if (d != null) {
|
||||||
Drawable progressDrawable = null;
|
Drawable progressDrawable = null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user