diff options
| author | Lucas Dupin <dupin@google.com> | 2018-05-24 14:03:24 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-05-24 14:03:24 -0700 |
| commit | 30f0867ee0c47941bd407b30bac9fa38cd43ca98 (patch) | |
| tree | ed483b9e6ea2a1c0db063d51de4d0e67c809d32f /core/java/android | |
| parent | 984436e530d2b3f88dd82b1cd53e17423cc99ed1 (diff) | |
| parent | cf2c35dca6e20ffc87b4980b3b5d576a080db80a (diff) | |
Merge "Revert "WallpaperColors hint computation"" into pi-dev
am: cf2c35dca6
Change-Id: Ibc3760ce650c8d48f261e6486edb51582391b710
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/WallpaperColors.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/core/java/android/app/WallpaperColors.java b/core/java/android/app/WallpaperColors.java index 2d007adf86e6..60e8a121dc45 100644 --- a/core/java/android/app/WallpaperColors.java +++ b/core/java/android/app/WallpaperColors.java @@ -144,13 +144,6 @@ public final class WallpaperColors implements Parcelable { * @param bitmap Source where to extract from. */ public static WallpaperColors fromBitmap(@NonNull Bitmap bitmap) { - return fromBitmap(bitmap, false /* computeHints */); - } - - /** - * @hide - */ - public static WallpaperColors fromBitmap(@NonNull Bitmap bitmap, boolean computeHints) { if (bitmap == null) { throw new IllegalArgumentException("Bitmap can't be null"); } @@ -200,7 +193,7 @@ public final class WallpaperColors implements Parcelable { } } - int hints = computeHints ? calculateDarkHints(bitmap) : 0; + int hints = calculateDarkHints(bitmap); if (shouldRecycle) { bitmap.recycle(); |
