Commit graph

16493 commits

Author SHA1 Message Date
Milos Kozak c62f089f0e
Merge pull request #1987 from nightscout/dependabot/gradle/dev/com.android.tools.build-gradle-7.2.2
chore(deps): bump gradle from 7.2.1 to 7.2.2
2022-08-04 13:40:09 +02:00
Milos Kozak c5425196f1 fix warning 2022-08-04 10:32:00 +02:00
Milos Kozak 7ae066dde2 Merge branch 'dev' of https://github.com/nightscout/AndroidAPS into dev 2022-08-04 10:29:01 +02:00
Milos Kozak b97f1abff3 fix warning 2022-08-04 10:28:53 +02:00
dependabot[bot] e0274f9e7d
chore(deps): bump gradle from 7.2.1 to 7.2.2
Bumps gradle from 7.2.1 to 7.2.2.

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-04 08:06:59 +00:00
Milos Kozak c8ab464b6e
Merge pull request #1977 from thecubic/omnieros-noactivate
[omnipod-eros] moot basal set before pod basal activation
2022-08-04 10:02:52 +02:00
Dave Carlson 559fc0b589 change to isCompleted for simplicity 2022-08-03 16:50:12 -07:00
Milos Kozak 1bb1467455
Merge pull request #1985 from p5nbTgip0r/fix-alarm-loop
Fix pump unreachable alarm loop
2022-08-03 14:14:17 +02:00
p5nbTgip0r d7ad74056d
fix: don't restart alarm sound service automatically
This sets the alarm sound service to not be sticky. If AAPS is stopped while an alarm is playing, the alarm sound service will be started again by the system but there's no built-in way to stop it after this happens. This commit makes it so the alarm sound service won't be restarted by Android, thereby avoiding the aforementioned issue.
2022-08-01 20:13:48 -07:00
Milos Kozak dfbe0ba0e6 Insight: prevent NPE 2022-08-01 21:10:25 +02:00
Milos Kozak 495a006632 DataLayerListenerServiceMobileHelper 2022-08-01 21:07:48 +02:00
Milos Kozak 9d0de0150b cleanup 2022-08-01 20:15:03 +02:00
Milos Kozak e920b6bc2d Glunovo: catch SecurityException 2022-08-01 16:40:52 +02:00
Milos Kozak 1b3bb6ecdd full clone of AS data 2022-08-01 16:22:04 +02:00
Carlos Rafael Giani 941f3e27a2 Add androidx.lifecycle:lifecycle-viewmodel to android module dependencies
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-08-01 15:37:50 +02:00
Carlos Rafael Giani d8842340b3 logging: Add functions that accept custom class/method/linenum values
These are meant for integrating other loggers into AAPSLogger.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-08-01 15:37:50 +02:00
Carlos Rafael Giani 0c486e01cf sharedPreferences: Add utility delegates
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-08-01 15:37:50 +02:00
Carlos Rafael Giani 6ef9b0c135 interfaces: Extend SP with edit block like androidx.core.content.edit
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-08-01 15:37:50 +02:00
Carlos Rafael Giani 8a3679a3c7 interfaces: Pump interface documentation improvements
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-08-01 15:37:50 +02:00
Carlos Rafael Giani c1bd53c9a9 overview: Use localized insulin unit in StatusLightHandler 2022-08-01 15:37:50 +02:00
Carlos Rafael Giani 9b1b797d09 IDEA/Android Studio: Disallow wildcard imports
Wildcard imports are generally discouraged for these reasons:

(Source: https://jiga.dev/avoiding-wildcard-imports-in-java-kotlin-with-intellij/)

* Explicit imports clearly states what external classes the current class
  is directly using, provided that you don’t leave redundant imports
  in your code.

* If there are two classes with the same name from different packages,
  it can introduce collision when using wildcard imports.

* When multiple people are working in a project, wildcard imports can
  create confusion as to which classes are actually imported.

Also note that ktlint has a rule against wildcard imports.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-08-01 15:37:50 +02:00
Milos Kozak 65719b79d2 catch IllegalStateException 2022-08-01 14:56:04 +02:00
Milos Kozak e89d263cdc postpone ProcessLifecycleListener init 2022-08-01 14:40:03 +02:00
Milos Kozak 5512c31f52 Merge branch 'dev' of https://github.com/nightscout/AndroidAPS into dev 2022-08-01 14:33:32 +02:00
Milos Kozak ef0a44e276 Prevent NPE 2022-08-01 14:33:19 +02:00
Milos Kozak 9ff54fea66
Merge pull request #1981 from nightscout/dependabot/gradle/dev/com.google.code.gson-gson-2.9.1
chore(deps): bump gson from 2.9.0 to 2.9.1
2022-08-01 11:52:42 +02:00
Milos Kozak b6f15456cc Revert "chore(deps): bump dagger_version from 2.42 to 2.43"
This reverts commit c5e55eaf85.
2022-08-01 11:51:33 +02:00
dependabot[bot] bf1469d3f8
chore(deps): bump gson from 2.9.0 to 2.9.1
Bumps [gson](https://github.com/google/gson) from 2.9.0 to 2.9.1.
- [Release notes](https://github.com/google/gson/releases)
- [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/gson/compare/gson-parent-2.9.0...gson-parent-2.9.1)

---
updated-dependencies:
- dependency-name: com.google.code.gson:gson
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 08:14:42 +00:00
Milos Kozak 9849d3758a
Merge pull request #1972 from Philoul/New/DashBolusDelivered
Update BOlus dialog with estimated amount of Unit injected
2022-08-01 09:15:37 +02:00
christina 710f42e9fb Merge remote-tracking branch 'origin/intelligo' into intelligo 2022-07-31 19:35:11 +03:00
christina 45bb7997d1 intelligo 2022-07-31 19:34:22 +03:00
christinadamianou b0fa7352c1
Merge pull request #1 from nightscout/master
int
2022-07-31 19:30:15 +03:00
Philoul 123f590722 Merge remote-tracking branch 'Nightscout/dev' into Autotune/TuneWeekDaysClean 2022-07-31 10:54:14 +02:00
Milos Kozak dece2e1622
Merge pull request #1974 from justmara/fix/debug-optimization
small debug logging optimization
2022-07-30 23:14:40 +02:00
Milos Kozak e635978c1a
Merge pull request #1969 from Philoul/Fix/AutotuneKeyboad
Autotune Fix Keyboard input for TuneDays
2022-07-30 23:10:01 +02:00
Milos Kozak df06b3425d
Merge pull request #1964 from nightscout/dependabot/gradle/dev/dagger_version-2.43
chore(deps): bump dagger_version from 2.42 to 2.43
2022-07-30 23:09:02 +02:00
Milos Kozak 14aace2181
Merge pull request #1953 from osodebailar/bugfix/fix-insight-textcolor-on-whitetheme
fix insight textcolor on white theme
2022-07-30 23:08:32 +02:00
Milos Kozak 53d75daf09
Merge pull request #1970 from nightscout/dependabot/gradle/dev/room_version-2.4.3
chore(deps): bump room_version from 2.4.2 to 2.4.3
2022-07-30 23:07:55 +02:00
Milos Kozak 7f3e29eb84
Merge pull request #1967 from osodebailar/bugfix/fix-wrong-button-style
fix button style
2022-07-30 22:48:17 +02:00
Milos Kozak d4ed32dd6c
Merge pull request #1961 from andyrozman/bug1724_tbr_iob
Bug1724 tbr iob
2022-07-30 22:47:29 +02:00
Sergey Zorchenko 5ee3d14235 moved some debug log messages creation to lambda 2022-07-29 14:05:31 +03:00
dependabot[bot] acf167e8ac
chore(deps): bump room_version from 2.4.2 to 2.4.3
Bumps `room_version` from 2.4.2 to 2.4.3.

Updates `room-ktx` from 2.4.2 to 2.4.3

Updates `room-runtime` from 2.4.2 to 2.4.3

Updates `room-rxjava3` from 2.4.2 to 2.4.3

Updates `room-compiler` from 2.4.2 to 2.4.3

Updates `room-testing` from 2.4.2 to 2.4.3

---
updated-dependencies:
- dependency-name: androidx.room:room-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-rxjava3
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-compiler
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.room:room-testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-28 08:09:15 +00:00
Philoul 11af3a9e66 Fix Merge 2022-07-28 00:35:23 +02:00
Philoul 7fa35b2742 Merge branch 'Fix/AutotuneKeyboad' into Autotune/TuneWeekDaysClean
# Conflicts:
#	app/src/main/java/info/nightscout/androidaps/plugins/general/autotune/AutotuneFragment.kt
2022-07-28 00:27:17 +02:00
Philoul d1429ad150 Autotune replace EditTextPreference by ValidatingEditTextPreference for Default tuneDays 2022-07-27 23:59:17 +02:00
Philoul a67bcddbfd Autotune Fix tuneDays modification from keyboard 2022-07-27 23:38:51 +02:00
Philoul daa94a9724 Update Bolus Progress message for Eros 2022-07-27 22:54:32 +02:00
Philoul 28fcdd8ada Round injected Units to Dash tick value 0.05U 2022-07-27 22:20:35 +02:00
osodebailar ff378579c4 fix button style 2022-07-27 09:45:09 +02:00
Philoul f9bebfccba Dash Bolus delivered ptogress dialog 2022-07-26 22:31:52 +02:00