Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.valterc.ki2.karoo.overlay

import android.annotation.SuppressLint
import android.app.ActivityManager
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service.ACTIVITY_SERVICE
import android.app.Service.NOTIFICATION_SERVICE
import android.app.Service.RECEIVER_EXPORTED
import android.content.BroadcastReceiver
Expand Down
6 changes: 2 additions & 4 deletions app/src/main/java/com/valterc/ki2/services/Ki2Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,7 @@ public List<DeviceId> getSavedDevices() {
@Override
public void onReceive(final Context context, final Intent intent) {
Timber.d("Received reconnect devices broadcast");
serviceHandler.postRetriableAction(() -> {
antConnectionManager.restartClosedConnections(Ki2Service.this);
});
serviceHandler.postRetriableAction(() -> antConnectionManager.restartClosedConnections(Ki2Service.this));
}
};

Expand Down Expand Up @@ -576,7 +574,7 @@ public void onDestroy() {
super.onDestroy();
}

private void processScan() throws Exception {
private void processScan() {
if (callbackListScan.getRegisteredCallbackCount() != 0) {
if (antManager.isAntServiceReady()) {
antScanner.startScan(ConfigurationStore.getScanChannelConfiguration(Ki2Service.this));
Expand Down