From 4ee2e819958fa9630725b13ba4095c21a48c92be Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Fri, 2 Aug 2024 20:34:54 -0600 Subject: [PATCH] Revert "widgets: reduce cover size limit" This reverts commit 2ecb94c97ea53912a679cf346c7de61557423339. --- app/src/main/java/org/oxycblt/auxio/widgets/WidgetUtil.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/oxycblt/auxio/widgets/WidgetUtil.kt b/app/src/main/java/org/oxycblt/auxio/widgets/WidgetUtil.kt index 3d02fa1ab..799aa8a67 100644 --- a/app/src/main/java/org/oxycblt/auxio/widgets/WidgetUtil.kt +++ b/app/src/main/java/org/oxycblt/auxio/widgets/WidgetUtil.kt @@ -51,11 +51,11 @@ fun newRemoteViews(context: Context, @LayoutRes layoutRes: Int): RemoteViews { * there is only one image. * * @param context [Context] required to perform calculation. - * @param reduce Optional multiplier to reduce the image size. Recommended value is 3 to avoid + * @param reduce Optional multiplier to reduce the image size. Recommended value is 2 to avoid * device-specific variations in memory limit. * @return The dimension of a bitmap that can be safely used in [RemoteViews]. */ -fun getSafeRemoteViewsImageSize(context: Context, reduce: Float = 3f): Int { +fun getSafeRemoteViewsImageSize(context: Context, reduce: Float = 2f): Int { val metrics = context.resources.displayMetrics val sw = metrics.widthPixels val sh = metrics.heightPixels