Sleep charts: Fix empty cells for devices without awake sleep

This commit is contained in:
José Rebelo 2024-10-16 23:21:38 +01:00
parent 2abe7e5b2f
commit e436946bed
2 changed files with 38 additions and 27 deletions

View File

@ -92,6 +92,7 @@
</LinearLayout>
<LinearLayout
style="@style/GridTile"
android:layout_height="fill_parent"
android:layout_marginBottom="0dp"
>
<LinearLayout
@ -129,6 +130,7 @@
<LinearLayout
style="@style/GridTile"
android:layout_marginBottom="0dp"
android:layout_height="fill_parent"
>
<LinearLayout
android:id="@+id/sleep_chart_legend_awake_time_wrapper"

View File

@ -76,10 +76,17 @@
/>
</LinearLayout>
<LinearLayout
android:id="@+id/sleep_chart_legend_rem_time_wrapper"
style="@style/GridTile"
android:layout_height="fill_parent"
android:layout_marginBottom="0dp"
>
<LinearLayout
android:id="@+id/sleep_chart_legend_rem_time_wrapper"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
>
<View
android:layout_width="fill_parent"
android:layout_height="5dp"
@ -101,12 +108,14 @@
android:layout_height="wrap_content"
android:gravity="center"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/sleep_chart_legend_awake_time_wrapper"
style="@style/GridTile"
android:layout_height="fill_parent"
android:layout_marginBottom="0dp"
>
<LinearLayout
android:id="@+id/sleep_chart_legend_awake_time_wrapper"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"