Tweak dark area thresholds.

Bug: 185890335
Test: Manual
Change-Id: Iee125b21cd742ebe5895a407a8062e8826a72931
This commit is contained in:
Shan Huang
2021-05-24 14:34:08 +08:00
parent fb127be77f
commit 9130229cb2

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;