Skip to content

Commit

Permalink
Chromecast: call success callback when result was successful (#1296)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Hoch <chris@hpc.at>
  • Loading branch information
dumpfheimer and Christopher Hoch authored Feb 14, 2024
1 parent 161e4ca commit 12379d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 12379d6

Please sign in to comment.