diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/DataSyncSelectorImplementation.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/DataSyncSelectorImplementation.kt index ccfa691d6c..54ed71eaf0 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/DataSyncSelectorImplementation.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/DataSyncSelectorImplementation.kt @@ -621,7 +621,6 @@ class DataSyncSelectorImplementation @Inject constructor( //private var lastTbrId = -1L //private var lastTbrTime = -1L override fun processChangedTemporaryBasalsCompat(): Boolean { - val useAbsolute = sp.getBoolean(R.string.key_ns_sync_use_absolute, false) val lastDbIdWrapped = appRepository.getLastTemporaryBasalIdWrapped().blockingGet() val lastDbId = if (lastDbIdWrapped is ValueWrapper.Existing) lastDbIdWrapped.value else 0L var startId = sp.getLong(R.string.key_ns_temporary_basal_last_synced_id, 0) @@ -658,7 +657,7 @@ class DataSyncSelectorImplementation @Inject constructor( tb.first.interfaceIDs.nightscoutId == null -> nsClientPlugin.nsClientService?.dbAdd( "treatments", - tb.first.toJson(true, profile, dateUtil, useAbsolute), + tb.first.toJson(true, profile, dateUtil), DataSyncSelector.PairTemporaryBasal(tb.first, tb.second.id), "$startId/$lastDbId" ) @@ -667,7 +666,7 @@ class DataSyncSelectorImplementation @Inject constructor( nsClientPlugin.nsClientService?.dbUpdate( "treatments", tb.first.interfaceIDs.nightscoutId, - tb.first.toJson(false, profile, dateUtil, useAbsolute), + tb.first.toJson(false, profile, dateUtil), DataSyncSelector.PairTemporaryBasal(tb.first, tb.second.id), "$startId/$lastDbId" ) @@ -700,7 +699,6 @@ class DataSyncSelectorImplementation @Inject constructor( //private var lastEbId = -1L //private var lastEbTime = -1L override fun processChangedExtendedBolusesCompat(): Boolean { - val useAbsolute = sp.getBoolean(R.string.key_ns_sync_use_absolute, false) val lastDbIdWrapped = appRepository.getLastExtendedBolusIdWrapped().blockingGet() val lastDbId = if (lastDbIdWrapped is ValueWrapper.Existing) lastDbIdWrapped.value else 0L var startId = sp.getLong(R.string.key_ns_extended_bolus_last_synced_id, 0) @@ -737,7 +735,7 @@ class DataSyncSelectorImplementation @Inject constructor( eb.first.interfaceIDs.nightscoutId == null -> nsClientPlugin.nsClientService?.dbAdd( "treatments", - eb.first.toJson(true, profile, dateUtil, useAbsolute), + eb.first.toJson(true, profile, dateUtil), DataSyncSelector.PairExtendedBolus(eb.first, eb.second.id), "$startId/$lastDbId" ) @@ -746,7 +744,7 @@ class DataSyncSelectorImplementation @Inject constructor( nsClientPlugin.nsClientService?.dbUpdate( "treatments", eb.first.interfaceIDs.nightscoutId, - eb.first.toJson(false, profile, dateUtil, useAbsolute), + eb.first.toJson(false, profile, dateUtil), DataSyncSelector.PairExtendedBolus(eb.first, eb.second.id), "$startId/$lastDbId" ) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/NSClientPlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/NSClientPlugin.kt index 66f53f7fbf..e7255caf3c 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/NSClientPlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/NSClientPlugin.kt @@ -152,7 +152,7 @@ class NSClientPlugin @Inject constructor( preferenceFragment.findPreference(rh.gs(R.string.key_ns_create_announcements_from_errors))?.isVisible = false preferenceFragment.findPreference(rh.gs(R.string.key_ns_create_announcements_from_carbs_req))?.isVisible = false - preferenceFragment.findPreference(rh.gs(R.string.key_ns_sync_use_absolute))?.isVisible = false +// preferenceFragment.findPreference(rh.gs(R.string.key_ns_sync_use_absolute))?.isVisible = false } else { // APS or pumpControl mode preferenceFragment.findPreference(rh.gs(R.string.key_ns_receive_profile_switch))?.isVisible = buildHelper.isEngineeringMode() diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2dc82f2e42..4d24ca2e1d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -66,7 +66,6 @@ Reset Databases Do you really want to reset the databases? Exit - Always use basal absolute values This device does not appear to support battery optimization whitelisting - you may experience performance issues. Some buttons to quickly access common features diff --git a/app/src/main/res/xml/pref_nsclientinternal.xml b/app/src/main/res/xml/pref_nsclientinternal.xml index e2e14efa99..208bb66168 100644 --- a/app/src/main/res/xml/pref_nsclientinternal.xml +++ b/app/src/main/res/xml/pref_nsclientinternal.xml @@ -184,11 +184,6 @@ android:summary="@string/ns_localbroadcasts" android:title="@string/ns_localbroadcasts_title" /> - - pump_unreachable_threshold missed_bg_readings_threshold gradually_increase_notification_volume - ns_sync_use_absolute virtualpump_type QuickWizard wearcontrol