Merge pull request #702 from McHoffi/McHoffi-SMBnotify_true

enable SMB notify by default
This commit is contained in:
AdrianLxM 2018-03-08 15:17:28 +01:00 committed by GitHub
commit 6904cb8807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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>