mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-12 01:51:58 +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) {
|
if (mAutoConnectInvervalReceiver != null) {
|
||||||
unregisterReceiver(mAutoConnectInvervalReceiver);
|
unregisterReceiver(mAutoConnectInvervalReceiver);
|
||||||
|
mAutoConnectIntervalReceiver.destroy();
|
||||||
mAutoConnectInvervalReceiver = null;
|
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