From 9debe06029b4350a836e9cd675a3919feeefc984 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Wed, 26 Oct 2022 21:02:43 -0600 Subject: [PATCH] widgets: add min resize width Add a minimum resize width to widgets to maybe stop widget size limits from being forgotten at random. --- app/src/main/res/xml-v31/widget_info.xml | 2 ++ app/src/main/res/xml/widget_info.xml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/main/res/xml-v31/widget_info.xml b/app/src/main/res/xml-v31/widget_info.xml index 3aea33e3b..eaf88f199 100644 --- a/app/src/main/res/xml-v31/widget_info.xml +++ b/app/src/main/res/xml-v31/widget_info.xml @@ -4,6 +4,8 @@ android:initialLayout="@layout/widget_default" android:minWidth="@dimen/widget_width_def" android:minHeight="@dimen/widget_height_def" + android:minResizeHeight="@dimen/widget_height_def" + android:minResizeWidth="@dimen/widget_width_def" android:previewImage="@drawable/ui_widget_preview" android:previewLayout="@layout/widget_small" android:resizeMode="horizontal|vertical" diff --git a/app/src/main/res/xml/widget_info.xml b/app/src/main/res/xml/widget_info.xml index fb777a4be..cfb6d3d4f 100644 --- a/app/src/main/res/xml/widget_info.xml +++ b/app/src/main/res/xml/widget_info.xml @@ -3,6 +3,8 @@ android:initialLayout="@layout/widget_default" android:minWidth="@dimen/widget_width_def" android:minHeight="@dimen/widget_height_def" + android:minResizeHeight="@dimen/widget_height_def" + android:minResizeWidth="@dimen/widget_width_def" android:previewImage="@drawable/ui_widget_preview" android:resizeMode="horizontal|vertical" android:updatePeriodMillis="0"