File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/main/java/com/github/jrejaud/wear_socket Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ dependencies {
2424 compile ' com.android.support:appcompat-v7:23.2.1'
2525 compile ' com.google.android.gms:play-services-wearable:8.4.0'
2626 // Non-official support library
27+ // http://developer.android.com/training/wearables/apps/layouts.html#UiLibrary
2728 compile ' com.google.android.support:wearable:1.1.0'
2829 compile ' com.google.code.gson:gson:2.2.4'
2930}
Original file line number Diff line number Diff line change @@ -83,9 +83,7 @@ public void onConnectionSuspended(int i) {
8383 .addOnConnectionFailedListener (new GoogleApiClient .OnConnectionFailedListener () {
8484 @ Override
8585 public void onConnectionFailed (ConnectionResult result ) {
86- String message = "Cannot start google api client" ;
87- Toast .makeText (context ,message ,Toast .LENGTH_SHORT ).show ();
88- throw new RuntimeException ("Cannot start google api client" );
86+ throw new RuntimeException (result .toString ());
8987 }
9088 })
9189 .addApi (Wearable .API )
You can’t perform that action at this time.
0 commit comments