diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java
index e6ad8d22a..3e5f26869 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java
@@ -296,11 +296,13 @@ public class SleepChartFragment extends AbstractChartFragment {
result.append(getContext().getString(R.string.you_did_not_sleep));
} else {
for (SleepSession sleepSession : pieData.getSleepSessions()) {
+ if (result.length() > 0) {
+ result.append('\n');
+ }
result.append(getContext().getString(
R.string.you_slept,
DateTimeUtils.timeToString(sleepSession.getSleepStart()),
DateTimeUtils.timeToString(sleepSession.getSleepEnd())));
- result.append('\n');
}
}
return result.toString();
@@ -530,4 +532,4 @@ public class SleepChartFragment extends AbstractChartFragment {
public float getIntensityTotal() { return intensityTotal;}
}
-}
\ No newline at end of file
+}
diff --git a/app/src/main/res/layout-land/fragment_sleepchart.xml b/app/src/main/res/layout-land/fragment_sleepchart.xml
index ef304bd63..21bf14b9c 100644
--- a/app/src/main/res/layout-land/fragment_sleepchart.xml
+++ b/app/src/main/res/layout-land/fragment_sleepchart.xml
@@ -15,6 +15,9 @@
android:id="@+id/sleepchart_info"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
+ android:maxLines="3"
+ android:scrollbarAlwaysDrawVerticalTrack="true"
+ android:scrollbarFadeDuration="0"
android:layout_weight="90" />