option to enable wear/SMB notifications
This commit is contained in:
parent
7270b0b2f5
commit
c821ef97d8
3 changed files with 9 additions and 1 deletions
|
@ -197,7 +197,7 @@ public class WearPlugin implements PluginBase {
|
|||
|
||||
@Subscribe
|
||||
public void onStatusEvent(final EventOverviewBolusProgress ev) {
|
||||
if(!ev.isSMB()) {
|
||||
if(!ev.isSMB()||SP.getBoolean("wear_notifySMB", false)) {
|
||||
Intent intent = new Intent(ctx, WatchUpdaterService.class).setAction(WatchUpdaterService.ACTION_SEND_BOLUSPROGRESS);
|
||||
intent.putExtra("progresspercent", ev.percent);
|
||||
intent.putExtra("progressstatus", ev.status);
|
||||
|
|
|
@ -929,5 +929,7 @@
|
|||
<string name="let_temp_basal_run">Let current temp basal run</string>
|
||||
<string name="mute">Mute</string>
|
||||
<string name="nav_historybrowser">History browser</string>
|
||||
<string name="wear_notifysmb_title">Notify on SMB</string>
|
||||
<string name="wear_notifysmb_summary">Show SMB on the watch like a standard bolus.</string>
|
||||
</resources>
|
||||
|
||||
|
|
|
@ -30,6 +30,12 @@
|
|||
android:key="wear_showbgi"
|
||||
android:summary="@string/wear_showbgi_summary"
|
||||
android:title="@string/wear_showbgi_title" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="wear_notifySMB"
|
||||
android:summary="@string/wear_notifysmb_summary"
|
||||
android:title="@string/wear_notifysmb_title" />
|
||||
</PreferenceScreen>
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
Loading…
Reference in a new issue