mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Tried fixing a LineageOS quirk with regular BT scans
This commit is contained in:
+6
-1
@@ -623,7 +623,12 @@ public class DiscoveryActivity extends AbstractGBActivity implements AdapterView
|
||||
*/
|
||||
private void startBTDiscovery(Scanning what) {
|
||||
LOG.info("Starting BT discovery");
|
||||
|
||||
try {
|
||||
// LineageOS quirk, can't start scan properly,
|
||||
// if scan has been started by something else
|
||||
stopBTDiscovery();
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
handler.removeMessages(0, stopRunnable);
|
||||
handler.sendMessageDelayed(getPostMessage(stopRunnable), SCAN_DURATION);
|
||||
if (adapter.startDiscovery()) {
|
||||
|
||||
Reference in New Issue
Block a user