From 5874a4d2df55f2e7fd0e3208f1ee4d39d2c4f82e Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 5 Dec 2019 19:31:58 -0800 Subject: [PATCH] Fixes to white background sometimes in auto dark mode --- app/src/main/java/eu/kanade/tachiyomi/util/ImageUtil.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/ImageUtil.kt b/app/src/main/java/eu/kanade/tachiyomi/util/ImageUtil.kt index d9b0ebd81c..68b6c7730b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/ImageUtil.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/ImageUtil.kt @@ -93,7 +93,8 @@ object ImageUtil { topLeftIsDark -> image.getPixel(left, top) topRightIsDark -> image.getPixel(right, top) botLeftIsDark -> image.getPixel(left, bot) - else -> image.getPixel(right, bot) + botRightIsDark -> image.getPixel(right, bot) + else -> android.R.attr.colorBackground } var overallWhitePixels = 0