1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-11 20:49:25 +01:00

Widget: sleep rendering update

This commit is contained in:
vanous 2022-06-12 08:13:12 +02:00
parent a042d44cd0
commit 8ec9d0b2bd

View File

@ -143,6 +143,8 @@ public class Widget extends AppWidgetProvider {
if (sleep < 1) { if (sleep < 1) {
views.setViewVisibility(R.id.todaywidget_sleep_layout, View.GONE); views.setViewVisibility(R.id.todaywidget_sleep_layout, View.GONE);
} else {
views.setViewVisibility(R.id.todaywidget_sleep_layout, View.VISIBLE);
} }
views.setTextViewText(R.id.todaywidget_steps, String.format("%1s", steps)); views.setTextViewText(R.id.todaywidget_steps, String.format("%1s", steps));