From 41fb92815b74b4a0ca70001806f0c3fa5a5f8944 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 4 Jan 2018 12:22:08 +0100 Subject: [PATCH] request new data on preference change --- .../info/nightscout/androidaps/watchfaces/BaseWatchFace.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.java b/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.java index c23c2930a9..ea5b41176b 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.java +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/BaseWatchFace.java @@ -569,6 +569,10 @@ public abstract class BaseWatchFace extends WatchFace implements SharedPreferen @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key){ + if("delta_granularity".equals(key)){ + ListenerService.requestData(this); + } + if(layoutSet){ setDataFields(); setColor();