diff options
-rw-r--r-- | src/com/android/bitmap/drawable/BasicBitmapDrawable.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/bitmap/drawable/BasicBitmapDrawable.java b/src/com/android/bitmap/drawable/BasicBitmapDrawable.java index e058868..503c004 100644 --- a/src/com/android/bitmap/drawable/BasicBitmapDrawable.java +++ b/src/com/android/bitmap/drawable/BasicBitmapDrawable.java @@ -235,10 +235,14 @@ public class BasicBitmapDrawable extends Drawable implements DecodeCallback, final DecodeOptions opts = new DecodeOptions(bufferW, bufferH, getDecodeVerticalCenter(), DecodeOptions.STRATEGY_ROUND_NEAREST); mTask = new DecodeTask(mCurrKey, opts, factory, this, mCache); - mTask.executeOnExecutor(EXECUTOR); + mTask.executeOnExecutor(getExecutor()); Trace.endSection(); } + protected Executor getExecutor() { + return EXECUTOR; + } + protected float getDrawVerticalCenter() { return VERTICAL_CENTER; } |