1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

Avoid warning in unsetDynamicState()

This commit is contained in:
cpfeiffer 2015-06-06 23:13:26 +02:00
parent 020d8d74d6
commit 3fe9195d0d

View File

@ -172,8 +172,10 @@ public class GBDevice implements Parcelable {
setBatteryState(null); setBatteryState(null);
setFirmwareVersion(null); setFirmwareVersion(null);
setRssi(RSSI_UNKNOWN); setRssi(RSSI_UNKNOWN);
if (mBusyTask != null) {
unsetBusyTask(); unsetBusyTask();
} }
}
public String getStateString() { public String getStateString() {
switch (mState) { switch (mState) {