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

Commit a789419f authored by Kihong Seong's avatar Kihong Seong Committed by Gerrit Code Review
Browse files

Merge "Handle null identity address in BluetoothOppReceiver" into main

parents 22cb6d42 e743497a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothDevicePicker;
import android.bluetooth.BluetoothProfile;
import android.bluetooth.BluetoothProtoEnums;
import android.bluetooth.BluetoothUtils;
import android.content.BroadcastReceiver;
import android.content.ContentValues;
import android.content.Context;
@@ -79,7 +80,10 @@ public class BluetoothOppReceiver extends BroadcastReceiver {
            Log.d(
                    TAG,
                    "Received BT device selected intent, bt device: "
                            + remoteDevice.getIdentityAddress());
                            + BluetoothUtils.toAnonymizedAddress(
                                    Flags.identityAddressNullIfUnknown()
                                            ? Utils.getBrEdrAddress(remoteDevice)
                                            : remoteDevice.getIdentityAddress()));

            // Insert transfer session record to database
            mOppManager.startTransfer(remoteDevice);