From 3eea8019aafc960bdd8eb8cecd1e6abdb222ed82 Mon Sep 17 00:00:00 2001 From: qwe7002 Date: Tue, 30 Nov 2021 08:00:10 -0500 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=AB=E6=8F=8F=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/qwe7002/telegram_rc/beacon_receiver_service.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/qwe7002/telegram_rc/beacon_receiver_service.java b/app/src/main/java/com/qwe7002/telegram_rc/beacon_receiver_service.java index 345e6fc..9d2b36d 100644 --- a/app/src/main/java/com/qwe7002/telegram_rc/beacon_receiver_service.java +++ b/app/src/main/java/com/qwe7002/telegram_rc/beacon_receiver_service.java @@ -172,6 +172,7 @@ public void onCreate() { beacon_manager.setEnableScheduledScanJobs(false); beacon_manager.enableForegroundServiceScanning(notification, com.qwe7002.telegram_rc.notify_id.BEACON_SERVICE); startForeground(com.qwe7002.telegram_rc.notify_id.BEACON_SERVICE, notification); + BeaconManager.setAndroidLScanningDisabled(false); beacon_manager.setForegroundScanPeriod(config.delay); beacon_manager.setForegroundBetweenScanPeriod(2000); startup_time = System.currentTimeMillis();