From 05d40e4af04a8cd898beb805a4deb721af6c7589 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Mon, 13 Feb 2017 14:18:23 +0100 Subject: [PATCH] wear better toasts --- .../plugins/Wear/wearintegration/WatchUpdaterService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java index f61df0c15b..fc08941cd3 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/wearintegration/WatchUpdaterService.java @@ -163,13 +163,13 @@ public class WatchUpdaterService extends WearableListenerService implements if (event != null && event.getPath().equals(WEARABLE_INITIATE_ACTIONSTRING_PATH)) { String actionstring = new String(event.getData()); - ToastUtils.showToastInUiThread(this, "INITIATE: " + actionstring); + ToastUtils.showToastInUiThread(this, "Wear: " + actionstring); ActionStringHandler.handleInitiate(actionstring); } if (event != null && event.getPath().equals(WEARABLE_CONFIRM_ACTIONSTRING_PATH)) { String actionstring = new String(event.getData()); - ToastUtils.showToastInUiThread(this, "CONFIRM: " + actionstring); + ToastUtils.showToastInUiThread(this, "Wear Confirm: " + actionstring); ActionStringHandler.handleConfirmation(actionstring); } } @@ -488,7 +488,7 @@ public class WatchUpdaterService extends WearableListenerService implements dataMapRequest.getDataMap().putString("message", message); dataMapRequest.getDataMap().putString("actionstring", actionstring); - ToastUtils.showToastInUiThread(this, "SENT: " + actionstring); + ToastUtils.showToastInUiThread(this, "Requesting confirmation from wear: " + actionstring); PutDataRequest putDataRequest = dataMapRequest.asPutDataRequest(); Wearable.DataApi.putDataItem(googleApiClient, putDataRequest);