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

Commit 1016df94 authored by Josh Wu's avatar Josh Wu Committed by Automerger Merge Worker
Browse files

[Pandora] Return RemoteNotFound when device name is null am: 4cad1e1a

parents 449d3d07 4cad1e1a
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()
      }
    }
  }
}