diff options
author | Mark Wei <markwei@google.com> | 2014-01-17 19:29:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-01-17 19:29:19 +0000 |
commit | 3633bda5a285f442a52c4d6e0ab637e74f8cf175 (patch) | |
tree | b94734e1183cd02028ccc494fb5e80fedd445c1f | |
parent | a07e0af0f1997ce3d40df6a8a9f44cb0b2e4c07f (diff) | |
parent | 4d404fe4edb0b5074ed9d3e90dd7aa942f252692 (diff) | |
download | bitmap-3633bda5a285f442a52c4d6e0ab637e74f8cf175.tar.gz |
Merge "Restore bounds when we recreate the placeholder and progress drawables." into klp-ub-dev
-rw-r--r-- | src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java b/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java index 55b980a..6d9f05f 100644 --- a/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java +++ b/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java @@ -118,6 +118,7 @@ public class ExtendedBitmapDrawable extends BasicBitmapDrawable implements mPlaceholder = new Placeholder(placeholder, mResources, placeholderWidth, placeholderHeight, fadeOutDurationMs, mOpts); mPlaceholder.setCallback(this); + mPlaceholder.setBounds(getBounds()); // Progress bar is optional. if (mOpts.progressBar != null) { @@ -125,6 +126,7 @@ public class ExtendedBitmapDrawable extends BasicBitmapDrawable implements mProgress = new Progress(mOpts.progressBar.getConstantState().newDrawable(mResources), mResources, progressBarSize, progressBarSize, fadeOutDurationMs, mOpts); mProgress.setCallback(this); + mProgress.setBounds(getBounds()); } else { mProgress = null; } |