Don't set text onunbound gui elements
This commit is contained in:
parent
9e099ec741
commit
97bbc00dcf
1 changed files with 17 additions and 12 deletions
|
@ -154,6 +154,10 @@ public class DanaRFragment extends SubscriberFragment {
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
synchronized(DanaRFragment.this){
|
||||||
|
|
||||||
|
if(btConnectionView == null || pumpStatusView == null || pumpStatusLayout == null ) return;
|
||||||
|
|
||||||
if (c.sStatus == EventPumpStatusChanged.CONNECTING)
|
if (c.sStatus == EventPumpStatusChanged.CONNECTING)
|
||||||
btConnectionView.setText("{fa-bluetooth-b spin} " + c.sSecondsElapsed + "s");
|
btConnectionView.setText("{fa-bluetooth-b spin} " + c.sSecondsElapsed + "s");
|
||||||
else if (c.sStatus == EventPumpStatusChanged.CONNECTED)
|
else if (c.sStatus == EventPumpStatusChanged.CONNECTED)
|
||||||
|
@ -169,6 +173,7 @@ public class DanaRFragment extends SubscriberFragment {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue