mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Huawei: Call dispose on SupportProvider
Now properly stops the battery runner when the device disconnects.
This commit is contained in:
parent
9b668c784c
commit
80256e9114
@ -169,4 +169,10 @@ public class HuaweiBRSupport extends AbstractBTBRDeviceSupport {
|
||||
public void onCameraStatusChange(GBDeviceEventCameraRemote.Event event, String filename) {
|
||||
supportProvider.onCameraStatusChange(event, filename);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
supportProvider.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
@ -177,4 +177,10 @@ public class HuaweiLESupport extends AbstractBTLEDeviceSupport {
|
||||
public void onCameraStatusChange(GBDeviceEventCameraRemote.Event event, String filename) {
|
||||
supportProvider.onCameraStatusChange(event, filename);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
supportProvider.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user