1
0
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:
Arjan Schrijver 2024-02-22 15:26:45 +01:00
parent 22b2dcfaef
commit db8e1cb866
6 changed files with 6 additions and 0 deletions

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -125,6 +125,7 @@ public class DashboardTodayWidget extends AbstractDashboardWidget {
}
protected void fillData() {
if (todayView == null) return;
todayView.post(new Runnable() {
@Override
public void run() {