Skip to content
This repository was archived by the owner on Jan 16, 2023. It is now read-only.

Commit 977271f

Browse files
committed
some minor adjustments
1 parent 3cb31c9 commit 977271f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/com/google/sample/castcompanionlibrary/cast/DataCastManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ private void detachDataChannels() {
375375
for (String namespace : mNamespaceList) {
376376
try {
377377
Cast.CastApi.removeMessageReceivedCallbacks(mApiClient, namespace);
378-
} catch (IOException | IllegalStateException e) {
378+
} catch (IOException | IllegalArgumentException e) {
379379
LOGE(TAG, String.format("detachDataChannels(%s)", namespace), e);
380380
}
381381
}

src/com/google/sample/castcompanionlibrary/cast/VideoCastManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,7 @@ private void onApplicationStatusChanged() {
851851
}
852852
try {
853853
appStatus = Cast.CastApi.getApplicationStatus(mApiClient);
854-
LOGD(TAG, "onApplicationStatusChanged() reached: "
855-
+ Cast.CastApi.getApplicationStatus(mApiClient));
854+
LOGD(TAG, "onApplicationStatusChanged() reached: " + appStatus);
856855
for (IVideoCastConsumer consumer : mVideoConsumers) {
857856
try {
858857
consumer.onApplicationStatusChanged(appStatus);

0 commit comments

Comments
 (0)