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

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

Change-Id: I30988838e9a4f0f563a46327d26eb78742890892
This commit is contained in:
Shan Huang
2021-05-25 06:35:56 +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, // We also check if the image has dark pixels in it,
// to avoid bright images with some dark spots. // to avoid bright images with some dark spots.
private static final float DARK_PIXEL_CONTRAST = 5.5f; 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 List<Color> mMainColors;
private final Map<Integer, Integer> mAllColors; private final Map<Integer, Integer> mAllColors;