From 12379d6dbdc5f5aa3c4fcacaf03fa2752ce83ae0 Mon Sep 17 00:00:00 2001 From: Christopher Hoch <60989727+dumpfheimer@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:36:21 +0100 Subject: [PATCH] Chromecast: call success callback when result was successful (#1296) Co-authored-by: Christopher Hoch --- .../java/org/jellyfin/mobile/player/cast/ChromecastSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/proprietary/java/org/jellyfin/mobile/player/cast/ChromecastSession.java b/app/src/proprietary/java/org/jellyfin/mobile/player/cast/ChromecastSession.java index 93d00d150..9b233ff02 100644 --- a/app/src/proprietary/java/org/jellyfin/mobile/player/cast/ChromecastSession.java +++ b/app/src/proprietary/java/org/jellyfin/mobile/player/cast/ChromecastSession.java @@ -205,7 +205,7 @@ public void sendMessage(String namespace, String message, JavascriptCallback cal return; } activity.runOnUiThread(() -> session.sendMessage(namespace, message).setResultCallback(result -> { - if (!result.isSuccess()) { + if (result.isSuccess()) { callback.success(); } else { callback.error(result.toString());