Commit graph

136 commits

Author SHA1 Message Date
Carlos Rafael Giani
8537c42d0a combov2: Use dedicated variable for keeping track of suspended state
This is necessary to prevent race conditions during connection setup.
isSuspended() was relying on the driverStateUIFlow to determine if the
pump is currently suspended. However, because driverStateUIFlow is updated
in a separate coroutine, there is a chance that the Suspended state is
set shortly _after_ connect() called isSuspended() to determine if the
pump is suspended or not, causing connect() to do the wrong thing and
assume that the pump is currently connected. Since the main screen does
not show the current profile number, this leads to the error message
"profile 1 must be the active profile, not profile 0".
2023-04-03 20:52:48 +02:00
Milos Kozak
003f323d4c
Merge pull request #2464 from dv1/combov2-fixes-001
Fixes to combov2 pairing PIN entry UI, the pairing activity, and TDD history retrieval and activity background
2023-03-25 20:12:38 +01:00
Milos Kozak
1920bc7ce5
New Crowdin updates (#2465)
* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Czech)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Slovak)

* New translations strings.xml (Hebrew)
2023-03-23 10:32:05 +01:00
Carlos Rafael Giani
a0e65370dc combov2: Ask for Bluetooth permissions before pairing 2023-03-22 09:02:42 +01:00
Carlos Rafael Giani
d280a2bec5 comboctl-main: Allow fetching TDDs while the pump is suspended
There is no good reason for disallowing TDD retrieval while the Combo
is suspended - the TDD history screens are accessible, and TDD retrieval
does not cause any insulin delivery to take place.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-22 08:53:21 +01:00
Carlos Rafael Giani
6435b36f7e combov2: Use layout_weight to make PIN field adapt to horizontal space 2023-03-19 17:40:41 +01:00
Milos Kozak
438f384c67 lints 2023-03-16 18:36:47 +01:00
Milos Kozak
294f3cb789
Merge pull request #2457 from dv1/combov2-fixes-001
combov2: Fixes for the refresh button, unsafe casts, crashes due to Bluetooth, improved warning screen handling, and additional language support
2023-03-13 22:21:45 +01:00
Carlos Rafael Giani
9979331ef0 comboctl-parser: Fix typo in E2BatteryEmptyErrorScreenParsing test
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-13 21:46:31 +01:00
Milos Kozak
6e223dd5f4
New Crowdin updates (#2456)
* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations alert_descriptions.xml (Lithuanian)

* New translations exam.xml (Bulgarian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations objectives.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)
2023-03-13 21:32:18 +01:00
Carlos Rafael Giani
bec7a4aa97 combov2: Replace unsafe casts 2023-03-12 22:40:54 +01:00
Carlos Rafael Giani
cc4cd2dc04 comboctl-parser: Don't try to interpret text in error screens
That text shows contents that are different to that of warning screens.
Instead of extending the interpretation logic to cover such contents as
well, just use a generic ERROR_TEXT AlertScreenState. That text won't
be interpreted by any program logic anyway, since error screens are
never dismissed automatically.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-12 22:40:54 +01:00
Carlos Rafael Giani
377188353a combov2: Show UI notifications and toaster messages when BT is not enabled 2023-03-12 22:40:54 +01:00
Carlos Rafael Giani
6d998c8081 combov2: Catch exceptions thrown when the adapter is disabled / unavailable 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
c1058ad113 comboctl-android: Check that the adapter is available and enabled
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
13666fd549 combov2: Document and extend runWithPermissionCheck utility function 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
72819cbc53 comboctl-base: Add exceptions for disabled and missing Bluetooth adapters
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
fe1235dbe1 combov2: Wait for coroutines to finish in onStop() 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
2cdc4c45ea comboctl-parser: Add Lithuanian support
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
3f3884e513 comboctl-parser: Handle percent symbol in some TBR percentage screens
Some TBR percentage screens like the Lithuanian one show a % symbol
right after the text. Add an optional symbol parser to handle it.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
dbe72e72da comboctl-parser: Add Slovenian support
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
d2c0aba2b5 comboctl-main: Improve alert screen handling
* Check if the alert screen is the confirm or snooze screen, and press
  the CHECK button once or twice accordingly. This avoids fringe cases
  where the amount of button presses is incorrect.
* In rare cases, more alert screens may show up after dismissing the
  current one. Add code to keep observing remaining alerts and redo
  the dismissing logic after a while if necessary.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
76dec4aad6 comboctl-parser: Also parse text in alert screens
This helps with distinguishing the "snooze" and "confirm" screens.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
c81578f7ff combov2: Also enable the Refresh button in the Error state 2023-03-11 19:00:25 +01:00
Carlos Rafael Giani
b4cb00ab0b combov2: Remove notes from auto-inserted reservoir and battery changes
Unfortunately, even though the notes are informative, they do not fit
well in the treatments fragment. The only solution thus far is to remove
them from the therapy entries.

Fixes https://github.com/nightscout/AndroidAPS/issues/2382
2023-03-11 19:00:20 +01:00
Milos Kozak
c2fd6e5990 unify kotlinx_serialization 2023-02-27 15:57:27 +01:00
Milos Kozak
5a6d2e02a8
New Crowdin updates (#2435)
* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)
2023-02-27 15:21:40 +01:00
Milos Kozak
2863d5c06c
New Crowdin updates (#2431)
* New translations strings.xml (Portuguese, Brazilian)

* New translations objectives.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Italian)

* New translations protection.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations exam.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations exam.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations oh_strings.xml (Italian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Norwegian)

* New translations protection.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations validator.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations exam.xml (Russian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations exam.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations exam.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations exam.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations objectives.xml (Italian)

* New translations strings.xml (Italian)
2023-02-26 10:44:12 +01:00
Milos Kozak
69117327a4
New Crowdin updates (#2418)
* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations oh_strings.xml (Dutch)

* New translations objectives.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations oh_strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations objectives.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations objectives.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations objectives.xml (Hebrew)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Italian)

* New translations strings.xml (Russian)

* New translations oh_strings.xml (Polish)
2023-02-19 20:49:19 +01:00
Carlos Rafael Giani
02386ae9ca combov2: Don't return true in isBusy() when in the Connecting driver state 2023-02-18 20:18:27 +01:00
Milos Kozak
d869a343e1
New Crowdin updates (#2417)
* New translations oh_strings.xml (Slovak)

* New translations oh_strings.xml (Turkish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Hebrew)

* New translations objectives.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Hebrew)

* New translations oh_strings.xml (Norwegian)

* New translations exam.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations objectives.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations oh_strings.xml (Hebrew)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations oh_strings.xml (Lithuanian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations exam.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations objectives.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations objectives.xml (Lithuanian)

* New translations protection.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations exam.xml (Dutch)

* New translations exam.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Dutch)

* New translations objectives.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Dutch)

* New translations objectives.xml (Dutch)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)
2023-02-18 17:34:45 +01:00
Milos Kozak
c6ec76488e Merge remote-tracking branch 'origin/dev' into ns15 2023-02-10 22:00:49 +01:00
Carlos Rafael Giani
82bdb4df9a comboctl-main: Use the standard bolus' total amount as its immediate amount
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-02-09 18:50:27 +01:00
Milos Kozak
65123fe527 Combov2: prevent NPE 2023-02-04 19:26:04 +01:00
Milos Kozak
f6670091ec
New Crowdin updates (#2344)
* New translations strings.xml (Serbian (Latin))

* Update source file strings.xml

* Update source file strings.xml

* New translations strings.xml (Russian)

* New translations strings.xml (Russian)

* New translations strings.xml (Russian)

* New translations exam.xml (Russian)

* New translations strings.xml (Russian)

* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations strings.xml (German)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Italian)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Croatian)

* New translations strings.xml (Spanish)

* New translations strings.xml (German)

* New translations strings.xml (Russian)

* Update source file strings.xml

* Update source file strings.xml

* New translations strings.xml (Spanish)

* New translations strings.xml (Slovak)

* New translations strings.xml (Lithuanian)

* New translations protection.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations objectives.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations protection.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Lithuanian)

* New translations strings.xml (French)

* New translations strings.xml (Czech)

* New translations strings.xml (French)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations exam.xml (Turkish)

* New translations objectives.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations objectives.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations objectives.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations protection.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations exam.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Italian)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Irish)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Italian)

* New translations strings.xml (Japanese)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Croatian)

* New translations strings.xml (Serbian (Latin))

* New translations exam.xml (Romanian)

* New translations exam.xml (French)

* New translations exam.xml (Spanish)

* New translations exam.xml (Afrikaans)

* New translations exam.xml (Bulgarian)

* New translations exam.xml (Catalan)

* New translations exam.xml (Czech)

* New translations exam.xml (Danish)

* New translations exam.xml (German)

* New translations exam.xml (Greek)

* New translations exam.xml (Hebrew)

* New translations exam.xml (Italian)

* New translations exam.xml (Korean)

* New translations exam.xml (Lithuanian)

* New translations exam.xml (Dutch)

* New translations exam.xml (Norwegian)

* New translations exam.xml (Polish)

* New translations exam.xml (Portuguese)

* New translations exam.xml (Russian)

* New translations exam.xml (Slovak)

* New translations exam.xml (Swedish)

* New translations exam.xml (Turkish)

* New translations exam.xml (Chinese Simplified)

* New translations exam.xml (Portuguese, Brazilian)

* New translations exam.xml (Croatian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Czech)

* New translations strings.xml (German)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Turkish)

* Update source file strings.xml

* Update source file exam.xml

* Update source file strings.xml

* Update source file strings.xml

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations exam.xml (German)

* Update source file strings.xml

* New translations strings.xml (Czech)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (German)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Turkish)

* New translations exam.xml (German)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Spanish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations exam.xml (Spanish)

* New translations exam.xml (Czech)

* New translations exam.xml (Polish)

* New translations objectives.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)

* New translations strings.xml (Polish)
2023-01-30 22:13:24 +01:00
Carlos Rafael Giani
d505c1a90b combov2: Check if pump is suspended before setting TBR and delivering bolus
This avoids a misleading error state caused by an IllegalStateException
that gets thrown by the Pump.setTbr() and Pump.deliverBolus() when these
get called while the pump is suspended. Instead, first check for this
suspended state, and if the pump is indeed suspended, immediately exit
with the pump enact result set to not have succeeded nor have been enacted.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-28 20:43:29 +01:00
Milos Kozak
13cf19083a ComboV2: move logging to onStart 2023-01-21 16:55:24 +01:00
Milos Kozak
7728fe24f4
New Crowdin updates (#2334)
* Update source file objectives.xml

* New translations strings.xml (French)

* New translations strings.xml (French)

* New translations exam.xml (French)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations exam.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)
2023-01-11 09:45:19 +01:00
Milos Kozak
b74e5a520c
New Crowdin updates (#2331)
* Update source file strings.xml

* Update source file exam.xml

* Update source file strings.xml

* Update source file strings.xml

* Update source file strings.xml

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Spanish)

* New translations strings.xml (Czech)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Irish)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Italian)

* New translations strings.xml (Japanese)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Croatian)

* New translations strings.xml (Serbian (Latin))

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Spanish)

* New translations strings.xml (Romanian)

* New translations strings.xml (French)

* New translations strings.xml (Spanish)

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Bulgarian)

* New translations strings.xml (Catalan)

* New translations strings.xml (Czech)

* New translations strings.xml (Danish)

* New translations strings.xml (German)

* New translations strings.xml (Greek)

* New translations strings.xml (Irish)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Hungarian)

* New translations strings.xml (Italian)

* New translations strings.xml (Japanese)

* New translations strings.xml (Korean)

* New translations strings.xml (Lithuanian)

* New translations strings.xml (Dutch)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Polish)

* New translations strings.xml (Portuguese)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Swedish)

* New translations strings.xml (Turkish)

* New translations strings.xml (Chinese Simplified)

* New translations strings.xml (Portuguese, Brazilian)

* New translations strings.xml (Croatian)

* New translations strings.xml (Serbian (Latin))

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Spanish)

* New translations exam.xml (French)

* New translations exam.xml (Spanish)

* New translations exam.xml (Czech)

* New translations exam.xml (Norwegian)

* New translations exam.xml (Russian)

* New translations exam.xml (Slovak)

* New translations objectives.xml (Spanish)

* New translations objectives.xml (Czech)

* New translations objectives.xml (Norwegian)

* New translations objectives.xml (Russian)

* New translations objectives.xml (Slovak)

* New translations strings.xml (Spanish)

* New translations strings.xml (Slovak)

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Spanish)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Spanish)

* New translations strings.xml (Spanish)

* New translations strings.xml (Czech)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Russian)

* New translations strings.xml (Slovak)

* New translations strings.xml (Spanish)

* Update source file strings.xml

* Update source file exam.xml

* Update source file strings.xml

* Update source file strings.xml

* Update source file strings.xml

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations exam.xml (German)

* New translations objectives.xml (Czech)

* New translations objectives.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (German)

* New translations strings.xml (Norwegian)

* New translations strings.xml (Norwegian)

* New translations exam.xml (Norwegian)

* New translations strings.xml (Norwegian)
2023-01-09 10:11:17 +01:00
Carlos Rafael Giani
409852685e comboctl-base: Fix PumpIOTest
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-03 13:35:30 +01:00
Carlos Rafael Giani
fffe014d4e combov2: Apply changes from comboctl
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 21:42:54 +01:00
Carlos Rafael Giani
aff55d2f60 combov2: Add note about differences in AndroidManifest.xml
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
4bb163a633 comboctl-main: Support extended/multiwave bolus in Pump.deliverBolus()
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
83dce8bee3 comboctl-base: Handle ext/multiwave bolus in PumpIO.deliverCMDStandardBolus
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
05674ba552 comboctl-base: Support automatic extended/multiwave boluses in history
When delivering extended and multiwave boluses through the command mode,
the boluses are marked as "automatic" by the Combo, and use different IDs
compared to extended/multiwave boluses that were initiated through the
remote terminal mode. Add support for these IDs, and extend the
CMDHistoryEventDetail subclasses for extended and multiwave boluses with
a field that specifies whether the bolus was manual or automatic.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
916b847b21 comboctl-base: Add support for creating extended/multiwave bolus packets
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
22a144416b comboctl-main: Parse ext bolus main screen instead of throwing exception
To support extended and multiwave boluses in the future, it is necessary
to properly parse the main screen when it shows extended/multiwave
content. This requires some rework. Most notably, the code needs to be
changed to no longer throw ExtendedOrMultiwaveBolusActiveException.

One problem with extended/multiwave content on the main screen is that
it does not show TBR details (percentage & remaining duration). For this
reason, it is necessary to actually navigate to the TBR percentage screen
and read those value there. This means that the setTbr() call is slower
when an extended/multiwave bolus is ongoing, but better to be slower than
to omit post-setTbr checks that may catch rare errors.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
7f6f63bcf4 comboctl-main: Always move past skipped screens in navigateToRTScreen()
Without this, navigation gets stuck if an unrecognized screen
is encountered.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
9af5499d70 comboctl-base: Rename CMDBolusType to CMDImmediateBolusType
This name is less confusing, especially if another enum class for the
bolus delivery is about to be introduced.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00
Carlos Rafael Giani
7598ae758c comboctl-parser: Fix battery in ExtendedAndMultiwaveBolusMainScreenParser
Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2023-01-02 19:21:26 +01:00