Skip to content

Commit 2febb51

Browse files
committed
Small UI fixes
1 parent 05a5752 commit 2febb51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/io/homeassistant/companion/android/widgets/history/HistoryWidgetConfigureActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class HistoryWidgetConfigureActivity : BaseWidgetConfigureActivity() {
172172
}
173173
binding.addButton.setText(commonR.string.update_widget)
174174
} else {
175+
binding.textSize.setText(HistoryWidget.DEFAULT_TEXT_SIZE.toInt().toString())
175176
binding.backgroundType.setSelection(0)
176177
}
177178
entityAdapter = SingleItemArrayAdapter(this) { it?.entityId ?: "" }

app/src/main/res/layout/widget_history.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
android:id="@+id/widgetText"
2020
android:layout_width="match_parent"
2121
android:layout_height="0dp"
22-
android:layout_weight="2"
22+
android:layout_weight="1"
2323
android:layout_gravity="center"
2424
android:text="@string/widget_label_placeholder_text_static_state"
2525
android:textColor="?colorWidgetPrimary" />
@@ -28,7 +28,6 @@
2828
android:id="@+id/widgetLabelLayout"
2929
android:layout_width="match_parent"
3030
android:layout_height="wrap_content"
31-
android:layout_weight="1"
3231
android:layout_margin="2dp">
3332

3433
<ImageView

0 commit comments

Comments
 (0)