mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 01:09:47 +01:00
Always stop BT/BTLE discovery when exiting the Discovery Activity
Hopefully solves the leaks
This commit is contained in:
parent
45ecdaa213
commit
3c00332a77
@ -615,4 +615,14 @@ public class DiscoveryActivity extends AbstractGBActivity implements AdapterView
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
stopBTDiscovery();
|
||||||
|
stopBTLEDiscovery();
|
||||||
|
if (GB.supportsBluetoothLE()) {
|
||||||
|
stopNewBTLEDiscovery();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user