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

Commit bb8e15c2 authored by Charlie Boutier's avatar Charlie Boutier Committed by Gerrit Code Review
Browse files

Merge "[Pandora] Return RemoteNotFound when device name is null"

parents f6998fbb 0f0b94bc
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -687,7 +687,12 @@ class Host(private val context: Context, private val server: Server) : HostImplB
        } else {
        } else {
          request.address.toBluetoothDevice(bluetoothAdapter)
          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()
      }
    }
    }
  }
  }
}
}