aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-01 18:16:05 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-01 18:16:05 -0700
commit73b5aa504418ddd8bb74318714b96629e9421b9e (patch)
treec12d0739b72e50c34486dd5fc96b2589dca04ca9
parent9954b2da9ac640b761322b796f3625f367df14d4 (diff)
downloaddsub-73b5aa504418ddd8bb74318714b96629e9421b9e.tar.gz
dsub-73b5aa504418ddd8bb74318714b96629e9421b9e.tar.bz2
dsub-73b5aa504418ddd8bb74318714b96629e9421b9e.zip
Don't ignore SIGN_IN_REQUIRED error
-rw-r--r--src/github/daneren2005/dsub/service/ChromeCastController.java6
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();
}