1
0
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:
Daniele Gobbetti 2018-06-18 20:26:28 +02:00
parent 45ecdaa213
commit 3c00332a77

View File

@ -615,4 +615,14 @@ public class DiscoveryActivity extends AbstractGBActivity implements AdapterView
} }
} }
} }
@Override
protected void onPause() {
super.onPause();
stopBTDiscovery();
stopBTLEDiscovery();
if (GB.supportsBluetoothLE()) {
stopNewBTLEDiscovery();
}
}
} }