Skip to content

Commit d0c284c

Browse files
committed
Update error message
1 parent 1666467 commit d0c284c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

wear-socket/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

wear-socket/src/main/java/com/github/jrejaud/wear_socket/WearSocket.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)