diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-01 18:16:05 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-01 18:16:05 -0700 |
commit | 73b5aa504418ddd8bb74318714b96629e9421b9e (patch) | |
tree | c12d0739b72e50c34486dd5fc96b2589dca04ca9 /src/github/daneren2005 | |
parent | 9954b2da9ac640b761322b796f3625f367df14d4 (diff) | |
download | dsub-73b5aa504418ddd8bb74318714b96629e9421b9e.tar.gz dsub-73b5aa504418ddd8bb74318714b96629e9421b9e.tar.bz2 dsub-73b5aa504418ddd8bb74318714b96629e9421b9e.zip |
Don't ignore SIGN_IN_REQUIRED error
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/ChromeCastController.java | 6 |
1 files 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(); } |