Merge "Tweak dark area thresholds." into sc-dev am: 35a187904c am: 028c8bd001

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14700835

Change-Id: I8e1c6358fc54dfc7883489fe72f24b8a26f5e286
This commit is contained in:
Shan Huang
2021-05-25 06:49:15 +00:00
committed by Automerger Merge Worker

View File

@@ -101,7 +101,7 @@ public final class WallpaperColors implements Parcelable {
// We also check if the image has dark pixels in it,
// to avoid bright images with some dark spots.
private static final float DARK_PIXEL_CONTRAST = 5.5f;
private static final float MAX_DARK_AREA = 0.025f;
private static final float MAX_DARK_AREA = 0.05f;
private final List<Color> mMainColors;
private final Map<Integer, Integer> mAllColors;