diff options
author | Mark Wei <markwei@google.com> | 2013-11-21 00:16:41 -0800 |
---|---|---|
committer | Mark Wei <markwei@google.com> | 2013-11-21 00:17:08 -0800 |
commit | 4a1464aad9c626bd63821697b215a16ee21db824 (patch) | |
tree | 9d12def427df7a0b32eec8c536099ee3c26ab4fb /src/com | |
parent | 5f42121579221299e02f6d4627725814ed3d0fbf (diff) | |
download | bitmap-4a1464aad9c626bd63821697b215a16ee21db824.tar.gz |
Clarify ExtendedOptions validation documentation.
Change-Id: Ib89cb3268866888003567d76da45f0d6980dcc76
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java b/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java index 5ccdecd..ac332a9 100644 --- a/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java +++ b/src/com/android/bitmap/drawable/ExtendedBitmapDrawable.java @@ -689,10 +689,10 @@ public class ExtendedBitmapDrawable extends BasicBitmapDrawable implements "ExtendedOptions: To support FEATURE_ORDERED_DISPLAY, " + "decodeAggregator must be set."); } - if ((features & FEATURE_PARALLAX) != 0 && parallaxSpeedMultiplier == 1) { + if ((features & FEATURE_PARALLAX) != 0 && parallaxSpeedMultiplier <= 1) { throw new IllegalStateException( "ExtendedOptions: To support FEATURE_PARALLAX, " - + "parallaxSpeedMultiplier must be set."); + + "parallaxSpeedMultiplier must be greater than 1."); } if ((features & FEATURE_STATE_CHANGES) != 0) { if (backgroundColor == 0 |