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

Commit ba835937 authored by Charlie Boutier's avatar Charlie Boutier Committed by Automerger Merge Worker
Browse files

Merge "[Pandora] Return RemoteNotFound when device name is null" am: bb8e15c2 am: 061b28ab

parents 6a1b2cba 061b28ab
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -687,7 +687,12 @@ class Host(private val context: Context, private val server: Server) : HostImplB
        } else {
          request.address.toBluetoothDevice(bluetoothAdapter)
        }
      GetRemoteNameResponse.newBuilder().setName(device.name).build()
      val deviceName = device.name
      if (deviceName == null) {
        GetRemoteNameResponse.newBuilder().setRemoteNotFound(Empty.getDefaultInstance()).build()
      } else{
        GetRemoteNameResponse.newBuilder().setName(deviceName).build()
      }
    }
  }
}