Merge pull request #702 from McHoffi/McHoffi-SMBnotify_true
enable SMB notify by default
This commit is contained in:
commit
6904cb8807
|
@ -204,7 +204,7 @@ public class WearPlugin implements PluginBase {
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onStatusEvent(final EventOverviewBolusProgress ev) {
|
public void onStatusEvent(final EventOverviewBolusProgress ev) {
|
||||||
if(!ev.isSMB()||SP.getBoolean("wear_notifySMB", false)) {
|
if(!ev.isSMB()||SP.getBoolean("wear_notifySMB", true)) {
|
||||||
Intent intent = new Intent(ctx, WatchUpdaterService.class).setAction(WatchUpdaterService.ACTION_SEND_BOLUSPROGRESS);
|
Intent intent = new Intent(ctx, WatchUpdaterService.class).setAction(WatchUpdaterService.ACTION_SEND_BOLUSPROGRESS);
|
||||||
intent.putExtra("progresspercent", ev.percent);
|
intent.putExtra("progresspercent", ev.percent);
|
||||||
intent.putExtra("progressstatus", ev.status);
|
intent.putExtra("progressstatus", ev.status);
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
android:title="@string/wear_showbgi_title" />
|
android:title="@string/wear_showbgi_title" />
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="true"
|
||||||
android:key="wear_notifySMB"
|
android:key="wear_notifySMB"
|
||||||
android:summary="@string/wear_notifysmb_summary"
|
android:summary="@string/wear_notifysmb_summary"
|
||||||
android:title="@string/wear_notifysmb_title" />
|
android:title="@string/wear_notifysmb_title" />
|
||||||
|
@ -44,4 +44,4 @@
|
||||||
android:title="@string/wear_predictions_title" />
|
android:title="@string/wear_predictions_title" />
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|
Loading…
Reference in a new issue