mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 11:26:47 +01:00
Fix crash introduced by translation before onCreate()
This commit is contained in:
parent
d6f9eac711
commit
93523d7831
@ -46,7 +46,7 @@ public class LiveActivityFragment extends AbstractChartFragment {
|
||||
private BarEntry stepsPerMinuteEntry;
|
||||
private BarDataSet mStepsPerMinuteData;
|
||||
private BarDataSet mTotalStepsData;
|
||||
private LineDataSet mHistorySet = new LineDataSet(new ArrayList<Entry>(), getString(R.string.live_activity_steps_history));
|
||||
private LineDataSet mHistorySet;
|
||||
|
||||
private class Steps {
|
||||
private int initialSteps;
|
||||
@ -291,6 +291,7 @@ public class LiveActivityFragment extends AbstractChartFragment {
|
||||
yAxisRight.setDrawTopYLabelEntry(false);
|
||||
yAxisRight.setTextColor(CHART_TEXT_COLOR);
|
||||
|
||||
mHistorySet = new LineDataSet(new ArrayList<Entry>(), getString(R.string.live_activity_steps_history));
|
||||
mHistorySet.setColor(akActivity.color);
|
||||
mHistorySet.setDrawCircles(false);
|
||||
mHistorySet.setDrawCubic(true);
|
||||
|
Loading…
Reference in New Issue
Block a user