key_ns_upload_only true by default
This commit is contained in:
parent
dfd3115b59
commit
ca000a5f33
|
@ -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)
|
||||
refreshFromNS.setVisibility(View.GONE);
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ public class TreatmentsCareportalFragment extends Fragment {
|
|||
view.findViewById(R.id.careportal_removeandroidapsstartedevents).setOnClickListener(v ->
|
||||
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)
|
||||
refreshFromNS.setVisibility(View.GONE);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ public class TreatmentsTempTargetFragment extends Fragment {
|
|||
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)
|
||||
refreshFromNS.setVisibility(View.GONE);
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public class DataService extends IntentService {
|
|||
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();
|
||||
|
||||
final String action = intent.getAction();
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
android:title="@string/ns_localbroadcasts_title" />
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:defaultValue="true"
|
||||
android:key="@string/key_ns_upload_only"
|
||||
android:summary="@string/ns_upload_only_summary"
|
||||
android:title="@string/ns_upload_only" />
|
||||
|
|
Loading…
Reference in a new issue