From 902f7042b8ad4b34a456722859e234a84c5a05a6 Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Tue, 19 Mar 2024 10:58:36 +0100 Subject: [PATCH] fix: change widget layout selection algo --- .../main/java/foundation/e/advancedprivacy/widget/WidgetUI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/foundation/e/advancedprivacy/widget/WidgetUI.kt b/app/src/main/java/foundation/e/advancedprivacy/widget/WidgetUI.kt index f5ae2c7f..f55b178d 100644 --- a/app/src/main/java/foundation/e/advancedprivacy/widget/WidgetUI.kt +++ b/app/src/main/java/foundation/e/advancedprivacy/widget/WidgetUI.kt @@ -148,7 +148,7 @@ private fun buildLayout(context: Context, appWidgetManager: AppWidgetManager, wi return RemoteViews( context.packageName, when (width) { - in 0..NARROW_MAXWIDTH_DP_BREAKPOINT -> + in 1..NARROW_MAXWIDTH_DP_BREAKPOINT -> R.layout.widget_narrow else -> R.layout.widget_large } -- GitLab