key_ns_upload_only true by default

This commit is contained in:
Milos Kozak 2020-02-29 21:33:50 +01:00
parent dfd3115b59
commit ca000a5f33
6 changed files with 6 additions and 6 deletions

View file

@ -221,7 +221,7 @@ public class TreatmentsBolusFragment extends Fragment {
}); });
}); });
boolean nsUploadOnly = SP.getBoolean(R.string.key_ns_upload_only, false); boolean nsUploadOnly = SP.getBoolean(R.string.key_ns_upload_only, true);
if (nsUploadOnly) if (nsUploadOnly)
refreshFromNS.setVisibility(View.GONE); refreshFromNS.setVisibility(View.GONE);

View file

@ -136,7 +136,7 @@ public class TreatmentsCareportalFragment extends Fragment {
view.findViewById(R.id.careportal_removeandroidapsstartedevents).setOnClickListener(v -> view.findViewById(R.id.careportal_removeandroidapsstartedevents).setOnClickListener(v ->
OKDialog.showConfirmation(getContext(), MainApp.gs(R.string.careportal), MainApp.gs(R.string.careportal_removestartedevents), this::removeAndroidAPSStatedEvents)); OKDialog.showConfirmation(getContext(), MainApp.gs(R.string.careportal), MainApp.gs(R.string.careportal_removestartedevents), this::removeAndroidAPSStatedEvents));
boolean nsUploadOnly = SP.getBoolean(R.string.key_ns_upload_only, false); boolean nsUploadOnly = SP.getBoolean(R.string.key_ns_upload_only, true);
if (nsUploadOnly) if (nsUploadOnly)
refreshFromNS.setVisibility(View.GONE); refreshFromNS.setVisibility(View.GONE);

View file

@ -51,7 +51,7 @@ class TreatmentsProfileSwitchFragment : Fragment() {
}) })
} }
} }
if (SP.getBoolean(R.string.key_ns_upload_only, false)) profileswitch_refreshfromnightscout.visibility = View.GONE if (SP.getBoolean(R.string.key_ns_upload_only, true)) profileswitch_refreshfromnightscout.visibility = View.GONE
} }

View file

@ -168,7 +168,7 @@ public class TreatmentsTempTargetFragment extends Fragment {
RxBus.INSTANCE.send(new EventNSClientRestart()); RxBus.INSTANCE.send(new EventNSClientRestart());
})); }));
boolean nsUploadOnly = SP.getBoolean(R.string.key_ns_upload_only, false); boolean nsUploadOnly = SP.getBoolean(R.string.key_ns_upload_only, true);
if (nsUploadOnly) if (nsUploadOnly)
refreshFromNS.setVisibility(View.GONE); refreshFromNS.setVisibility(View.GONE);

View file

@ -54,7 +54,7 @@ public class DataService extends IntentService {
log.debug("onHandleIntent " + BundleLogger.log(intent.getExtras())); log.debug("onHandleIntent " + BundleLogger.log(intent.getExtras()));
} }
boolean acceptNSData = !SP.getBoolean(R.string.key_ns_upload_only, false); boolean acceptNSData = !SP.getBoolean(R.string.key_ns_upload_only, true);
Bundle bundles = intent.getExtras(); Bundle bundles = intent.getExtras();
final String action = intent.getAction(); final String action = intent.getAction();

View file

@ -138,7 +138,7 @@
android:title="@string/ns_localbroadcasts_title" /> android:title="@string/ns_localbroadcasts_title" />
<SwitchPreference <SwitchPreference
android:defaultValue="false" android:defaultValue="true"
android:key="@string/key_ns_upload_only" android:key="@string/key_ns_upload_only"
android:summary="@string/ns_upload_only_summary" android:summary="@string/ns_upload_only_summary"
android:title="@string/ns_upload_only" /> android:title="@string/ns_upload_only" />