Skip to content

Commit

Permalink
添加扫描开关
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 committed Nov 30, 2021
1 parent a5a6052 commit 3eea801
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3eea801

Please sign in to comment.