Restore more formatting

This commit is contained in:
Bart Sopers 2020-05-04 23:36:00 +02:00
parent acf6b50b66
commit d8eb777b4c
23 changed files with 32 additions and 27 deletions

View file

@ -54,7 +54,6 @@
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
@ -231,11 +230,11 @@
<service <service
android:name=".plugins.general.nsclient.services.NSClientService" android:name=".plugins.general.nsclient.services.NSClientService"
android:enabled="true" android:enabled="true"
android:exported="false" /> android:exported="true" />
<service <service
android:name=".services.AlarmSoundService" android:name=".services.AlarmSoundService"
android:enabled="true" android:enabled="true"
android:exported="false" /> android:exported="true" />
<service <service
android:name=".plugins.general.overview.notifications.DismissNotificationService" android:name=".plugins.general.overview.notifications.DismissNotificationService"
android:exported="false" /> android:exported="false" />
@ -298,6 +297,8 @@
android:theme="@style/Theme.AppCompat.NoTitle" /> android:theme="@style/Theme.AppCompat.NoTitle" />
<activity android:name=".plugins.pump.medtronic.dialog.MedtronicHistoryActivity" /> <activity android:name=".plugins.pump.medtronic.dialog.MedtronicHistoryActivity" />
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<!-- Omnipod service and activities --> <!-- Omnipod service and activities -->
<service <service
android:name=".plugins.pump.omnipod.service.RileyLinkOmnipodService" android:name=".plugins.pump.omnipod.service.RileyLinkOmnipodService"

View file

@ -18,8 +18,6 @@ class ErrorHelperActivity : DialogAppCompatActivity() {
errorDialog.status = intent.getStringExtra("status") errorDialog.status = intent.getStringExtra("status")
errorDialog.sound = intent.getIntExtra("soundid", R.raw.error) errorDialog.sound = intent.getIntExtra("soundid", R.raw.error)
errorDialog.title = intent.getStringExtra("title") errorDialog.title = intent.getStringExtra("title")
//if (intent.hasExtra("clipboardContent"))
// errorDialog.clipboardContent = intent.getStringExtra("clipboardContent")
errorDialog.show(supportFragmentManager, "Error") errorDialog.show(supportFragmentManager, "Error")
if (sp.getBoolean(R.string.key_ns_create_announcements_from_errors, true)) { if (sp.getBoolean(R.string.key_ns_create_announcements_from_errors, true)) {

View file

@ -353,4 +353,4 @@ class MyPreferenceFragment : PreferenceFragmentCompat(), OnSharedPreferenceChang
} }
return super.onPreferenceTreeClick(preference) return super.onPreferenceTreeClick(preference)
} }
} }

View file

@ -83,4 +83,4 @@ interface AppComponent : AndroidInjector<MainApp> {
fun build(): AppComponent fun build(): AppComponent
} }
} }

View file

@ -122,4 +122,4 @@ abstract class FragmentsModule {
@ContributesAndroidInjector abstract fun contributesRileyLinkStatusGeneral(): RileyLinkStatusGeneralFragment @ContributesAndroidInjector abstract fun contributesRileyLinkStatusGeneral(): RileyLinkStatusGeneralFragment
@ContributesAndroidInjector abstract fun contributesRileyLinkStatusHistoryFragment(): RileyLinkStatusHistoryFragment @ContributesAndroidInjector abstract fun contributesRileyLinkStatusHistoryFragment(): RileyLinkStatusHistoryFragment
@ContributesAndroidInjector abstract fun contributesRileyLinkStatusDeviceMedtronic(): RileyLinkStatusDeviceMedtronic @ContributesAndroidInjector abstract fun contributesRileyLinkStatusDeviceMedtronic(): RileyLinkStatusDeviceMedtronic
} }

View file

@ -6,4 +6,4 @@ class EventBTChange(val state: Change, val deviceName: String?, val deviceAddres
CONNECT, CONNECT,
DISCONNECT DISCONNECT
} }
} }

View file

@ -113,4 +113,4 @@ class ProfileFunctionImplementation @Inject constructor(
profileSwitch.percentage = percentage profileSwitch.percentage = percentage
return profileSwitch return profileSwitch
} }
} }

View file

@ -280,4 +280,4 @@ class ActionsFragment : DaggerFragment() {
for (customButton in pumpCustomButtons) action_buttons_layout?.removeView(customButton) for (customButton in pumpCustomButtons) action_buttons_layout?.removeView(customButton)
pumpCustomButtons.clear() pumpCustomButtons.clear()
} }
} }

View file

@ -133,4 +133,4 @@ class CareportalFragment : DaggerFragment(), View.OnClickListener {
private fun updateGUI() { private fun updateGUI() {
statusLightHandler.updateStatusLights(careportal_canulaage, careportal_insulinage, null, careportal_sensorage, careportal_pbage, null) statusLightHandler.updateStatusLights(careportal_canulaage, careportal_insulinage, null, careportal_sensorage, careportal_pbage, null)
} }
} }

View file

@ -237,4 +237,4 @@ class NSSettingsStatus @Inject constructor(
if (context != null) OKDialog.showConfirmation(context, resourceHelper.gs(R.string.statuslights), resourceHelper.gs(R.string.copyexistingvalues), action) if (context != null) OKDialog.showConfirmation(context, resourceHelper.gs(R.string.statuslights), resourceHelper.gs(R.string.copyexistingvalues), action)
else action.run() else action.run()
} }
} }

View file

@ -876,4 +876,4 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
} }
} }
} }
} }

View file

@ -57,4 +57,4 @@ class StatusLightHandler @Inject constructor(
view?.text = " " + DecimalFormatter.to0Decimal(level) + units view?.text = " " + DecimalFormatter.to0Decimal(level) + units
warnColors.setColorInverse(view, level, resWarn, resUrgent) warnColors.setColorInverse(view, level, resWarn, resUrgent)
} }
} }

View file

@ -76,4 +76,4 @@ class NotificationWithAction constructor(
this.action = action this.action = action
} }
} }

View file

@ -919,4 +919,4 @@ public class IobCobCalculatorPlugin extends PluginBase {
if (upper >= arr.length) return arr[(int) lower]; if (upper >= arr.length) return arr[(int) lower];
return arr[(int) lower] * (1 - weight) + arr[(int) upper] * weight; return arr[(int) lower] * (1 - weight) + arr[(int) upper] * weight;
} }
} }

View file

@ -79,4 +79,4 @@ class MsgStatusTempBasal(
} }
} }
} }
} }

View file

@ -104,4 +104,4 @@ class DanaRSMessageHashTable @Inject constructor(
put(DanaRS_Packet_APS_History_Events(aapsLogger, rxBus, resourceHelper, activePlugin, danaRSPlugin, detailedBolusInfoStorage, injector,0)) put(DanaRS_Packet_APS_History_Events(aapsLogger, rxBus, resourceHelper, activePlugin, danaRSPlugin, detailedBolusInfoStorage, injector,0))
put(DanaRS_Packet_APS_Set_Event_History(aapsLogger, 0, 0, 0, 0)) put(DanaRS_Packet_APS_Set_Event_History(aapsLogger, 0, 0, 0, 0))
} }
} }

View file

@ -200,4 +200,4 @@ open class DanaRS_Packet_APS_History_Events(
override fun getFriendlyName(): String { override fun getFriendlyName(): String {
return "APS_HISTORY_EVENTS" return "APS_HISTORY_EVENTS"
} }
} }

View file

@ -183,4 +183,4 @@ class MsgHistoryEvents_v2 constructor(
if (datetime > danaRv2Plugin.lastEventTimeLoaded) danaRv2Plugin.lastEventTimeLoaded = datetime if (datetime > danaRv2Plugin.lastEventTimeLoaded) danaRv2Plugin.lastEventTimeLoaded = datetime
rxBus.send(EventPumpStatusChanged(resourceHelper.gs(R.string.processinghistory) + ": " + status)) rxBus.send(EventPumpStatusChanged(resourceHelper.gs(R.string.processinghistory) + ": " + status))
} }
} }

View file

@ -101,4 +101,4 @@ class TreatmentsPluginTest : TestBaseWithProfile() {
val iob110pct = sot.getAbsoluteIOBTempBasals(now) val iob110pct = sot.getAbsoluteIOBTempBasals(now)
Assert.assertEquals(1.1, iob110pct.iob / iob100pct.iob, 0.0001) Assert.assertEquals(1.1, iob110pct.iob / iob100pct.iob, 0.0001)
} }
} }

View file

@ -53,4 +53,4 @@ class ResourceHelperImplementation @Inject constructor(private val context: Cont
} }
override fun shortTextMode() : Boolean = !gb(R.bool.isTablet) override fun shortTextMode() : Boolean = !gb(R.bool.isTablet)
} }

View file

@ -37,4 +37,4 @@ interface SP {
fun incInt(@StringRes resourceID: Int) fun incInt(@StringRes resourceID: Int)
fun putString(@StringRes resourceID: Int, value: String) fun putString(@StringRes resourceID: Int, value: String)
fun putString(key: String, value: String) fun putString(key: String, value: String)
} }

View file

@ -129,4 +129,4 @@ class SPImplementation @Inject constructor(
override fun putString(key: String, value: String) = override fun putString(key: String, value: String) =
sharedPreferences.edit().putString(key, value).apply() sharedPreferences.edit().putString(key, value).apply()
} }

View file

@ -1,17 +1,23 @@
# Project-wide Gradle settings. # Project-wide Gradle settings.
# IDE (e.g. Android Studio) users: # IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override* # Gradle settings configured through the IDE *will override*
# any settings specified in this file. # any settings specified in this file.
# For more details on how to configure your build environment visit # For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html # http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process. # Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings. # The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m # Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode. # When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit # This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true # org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2g org.gradle.jvmargs=-Xmx2g
android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
android.useAndroidX=true