From 73b5aa504418ddd8bb74318714b96629e9421b9e Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 1 Apr 2014 18:16:05 -0700 Subject: Don't ignore SIGN_IN_REQUIRED error --- src/github/daneren2005/dsub/service/ChromeCastController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github/daneren2005/dsub/service/ChromeCastController.java b/src/github/daneren2005/dsub/service/ChromeCastController.java index 0dbb40ca..db4af2e8 100644 --- a/src/github/daneren2005/dsub/service/ChromeCastController.java +++ b/src/github/daneren2005/dsub/service/ChromeCastController.java @@ -109,8 +109,8 @@ public class ChromeCastController extends RemoteController { }; - Cast.CastOptions.Builder apiOptionsBuilder = Cast.CastOptions.builder(castDevice, castClientListener); - apiClient = new GoogleApiClient.Builder(downloadService) + Cast.CastOptions.Builder apiOptionsBuilder = Cast.CastOptions.builder(castDevice, castClientListener).setVerboseLoggingEnabled(true); + apiClient = new GoogleApiClient.Builder(downloadService).useDefaultAccount() .addApi(Cast.API, apiOptionsBuilder.build()) .addConnectionCallbacks(connectionCallbacks) .addOnConnectionFailedListener(connectionFailedListener) @@ -329,7 +329,7 @@ public class ChromeCastController extends RemoteController { public void onResult(RemoteMediaPlayer.MediaChannelResult result) { if (result.getStatus().isSuccess()) { // Handled in other handler - } else if(result.getStatus().getStatusCode() != ConnectionResult.SIGN_IN_REQUIRED) { + } else { Log.e(TAG, "Failed to load: " + result.getStatus().toString()); failedLoad(); } -- cgit v1.2.3