mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-18 16:09:30 +01:00
Fix crash when switching fragment during device connection
This commit is contained in:
parent
22b2dcfaef
commit
db8e1cb866
@ -78,6 +78,7 @@ public class DashboardActiveTimeWidget extends AbstractDashboardWidget {
|
||||
|
||||
@Override
|
||||
protected void fillData() {
|
||||
if (activeTimeGauge == null) return;
|
||||
activeTimeGauge.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -79,6 +79,7 @@ public class DashboardDistanceWidget extends AbstractDashboardWidget {
|
||||
|
||||
@Override
|
||||
protected void fillData() {
|
||||
if (distanceGauge == null) return;
|
||||
distanceGauge.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -97,6 +97,7 @@ public class DashboardGoalsWidget extends AbstractDashboardWidget {
|
||||
|
||||
@Override
|
||||
protected void fillData() {
|
||||
if (goalsView == null) return;
|
||||
goalsView.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -78,6 +78,7 @@ public class DashboardSleepWidget extends AbstractDashboardWidget {
|
||||
|
||||
@Override
|
||||
protected void fillData() {
|
||||
if (sleepGauge == null) return;
|
||||
sleepGauge.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -76,6 +76,7 @@ public class DashboardStepsWidget extends AbstractDashboardWidget {
|
||||
|
||||
@Override
|
||||
protected void fillData() {
|
||||
if (stepsGauge == null) return;
|
||||
stepsGauge.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -125,6 +125,7 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
|
||||
}
|
||||
|
||||
protected void fillData() {
|
||||
if (todayView == null) return;
|
||||
todayView.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
Loading…
Reference in New Issue
Block a user