Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95732ac9 authored by Kihong Seong's avatar Kihong Seong
Browse files

Add log when callback is null during scan result callback

Currently even when scan result is delivered to the Java layer, it might not reach the app if callback is null. Adding a log to inform in that case.

Bug: 360991150
Test: m com.android.btservices
Flag: EXEMPT, changes to logs only
Change-Id: Idb511e9fcfc533d212665da321159af256e9cf54
parent da4333a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -451,6 +451,7 @@ public class TransitionalScanHelper {
                if (app.mCallback != null) {
                    app.mCallback.onScanResult(result);
                } else {
                    Log.v(TAG, "Callback is null, sending scan results by pendingIntent");
                    // Send the PendingIntent
                    ArrayList<ScanResult> results = new ArrayList<>();
                    results.add(result);