mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-01 13:35:49 +01:00
Merge branch 'master' of https://codeberg.org/Freeyourgadget/Gadgetbridge
This commit is contained in:
commit
8cc5ed04cd
@ -814,6 +814,7 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
|
||||
}
|
||||
if (mAutoConnectInvervalReceiver != null) {
|
||||
unregisterReceiver(mAutoConnectInvervalReceiver);
|
||||
mAutoConnectIntervalReceiver.destroy();
|
||||
mAutoConnectInvervalReceiver = null;
|
||||
}
|
||||
}
|
||||
|
@ -103,4 +103,8 @@ public class AutoConnectIntervalReceiver extends BroadcastReceiver {
|
||||
}
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
LocalBroadcastManager.getInstance(service).unregisterReceiver(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user