Merge pull request #627 from andrew-warrington/watchfaces

Watchfaces
This commit is contained in:
AdrianLxM 2018-01-31 23:05:41 +01:00 committed by GitHub
commit 588cae4282
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,6 @@ public abstract class BaseWatchFace extends WatchFace implements SharedPreferen
public boolean layoutSet = false; public boolean layoutSet = false;
public boolean bIsRound = false; public boolean bIsRound = false;
public int pointSize = 2; public int pointSize = 2;
public int missed_readings_alert_id = 818;
public BgGraphBuilder bgGraphBuilder; public BgGraphBuilder bgGraphBuilder;
public LineChartView chart; public LineChartView chart;
public ArrayList<BgWatchData> bgDataList = new ArrayList<>(); public ArrayList<BgWatchData> bgDataList = new ArrayList<>();
@ -181,7 +180,6 @@ public abstract class BaseWatchFace extends WatchFace implements SharedPreferen
} }
} }
); );
ListenerService.requestData(this);
wakeLock.acquire(50); wakeLock.acquire(50);
} }
@ -638,8 +636,6 @@ public abstract class BaseWatchFace extends WatchFace implements SharedPreferen
chart.setLineChartData(bgGraphBuilder.lineData()); chart.setLineChartData(bgGraphBuilder.lineData());
chart.setViewportCalculationEnabled(true); chart.setViewportCalculationEnabled(true);
chart.setMaximumViewport(chart.getMaximumViewport()); chart.setMaximumViewport(chart.getMaximumViewport());
} else {
ListenerService.requestData(this);
} }
} }