mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-01 12:05:37 +02: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