mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-31 06:32:54 +01:00
fix #2631
This commit is contained in:
parent
152c3c8d62
commit
46f0187634
@ -21,6 +21,7 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.text.method.ScrollingMovementMethod;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
@ -199,6 +200,7 @@ public class SleepChartFragment extends AbstractChartFragment {
|
|||||||
mActivityChart.getXAxis().setValueFormatter(mcd.getChartsData().getXValueFormatter());
|
mActivityChart.getXAxis().setValueFormatter(mcd.getChartsData().getXValueFormatter());
|
||||||
mActivityChart.setData(mcd.getChartsData().getData());
|
mActivityChart.setData(mcd.getChartsData().getData());
|
||||||
mSleepchartInfo.setText(buildYouSleptText(pieData));
|
mSleepchartInfo.setText(buildYouSleptText(pieData));
|
||||||
|
mSleepchartInfo.setMovementMethod(new ScrollingMovementMethod());
|
||||||
heartRateMin = mcd.getHeartRateAxisMin();
|
heartRateMin = mcd.getHeartRateAxisMin();
|
||||||
heartRateMax = mcd.getHeartRateAxisMax();
|
heartRateMax = mcd.getHeartRateAxisMax();
|
||||||
intensityTotal = mcd.getIntensityTotal();
|
intensityTotal = mcd.getIntensityTotal();
|
||||||
|
@ -12,9 +12,11 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/sleepchart_info"
|
android:id="@+id/sleepchart_info"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="0" />
|
android:layout_weight="0"
|
||||||
|
android:maxLines="3"
|
||||||
|
android:scrollbars="vertical" />
|
||||||
|
|
||||||
<com.github.mikephil.charting.charts.PieChart
|
<com.github.mikephil.charting.charts.PieChart
|
||||||
android:id="@+id/sleepchart_pie_light_deep"
|
android:id="@+id/sleepchart_pie_light_deep"
|
||||||
|
Loading…
Reference in New Issue
Block a user