From 2febb51a2b17a04eab617f94f5febead45f71413 Mon Sep 17 00:00:00 2001 From: PizzaMarinara Date: Tue, 3 Sep 2024 09:53:55 +0200 Subject: [PATCH] Small UI fixes --- .../android/widgets/history/HistoryWidgetConfigureActivity.kt | 1 + app/src/main/res/layout/widget_history.xml | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/homeassistant/companion/android/widgets/history/HistoryWidgetConfigureActivity.kt b/app/src/main/java/io/homeassistant/companion/android/widgets/history/HistoryWidgetConfigureActivity.kt index d4d38d7f494..8e021c50eb5 100644 --- a/app/src/main/java/io/homeassistant/companion/android/widgets/history/HistoryWidgetConfigureActivity.kt +++ b/app/src/main/java/io/homeassistant/companion/android/widgets/history/HistoryWidgetConfigureActivity.kt @@ -172,6 +172,7 @@ class HistoryWidgetConfigureActivity : BaseWidgetConfigureActivity() { } binding.addButton.setText(commonR.string.update_widget) } else { + binding.textSize.setText(HistoryWidget.DEFAULT_TEXT_SIZE.toInt().toString()) binding.backgroundType.setSelection(0) } entityAdapter = SingleItemArrayAdapter(this) { it?.entityId ?: "" } diff --git a/app/src/main/res/layout/widget_history.xml b/app/src/main/res/layout/widget_history.xml index 0ed6a291549..b78f28e4cd6 100644 --- a/app/src/main/res/layout/widget_history.xml +++ b/app/src/main/res/layout/widget_history.xml @@ -19,7 +19,7 @@ android:id="@+id/widgetText" android:layout_width="match_parent" android:layout_height="0dp" - android:layout_weight="2" + android:layout_weight="1" android:layout_gravity="center" android:text="@string/widget_label_placeholder_text_static_state" android:textColor="?colorWidgetPrimary" /> @@ -28,7 +28,6 @@ android:id="@+id/widgetLabelLayout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" android:layout_margin="2dp">