-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent High Threshold range verification #3767
Persistent High Threshold range verification #3767
Conversation
Done. |
Hi, can you explain when you would expect this to activate? What are the circumstances that result in an out of range value? thanks. |
Hi, Thanks for the review. There are two scenarios that will trigger this: 1- A user already has xDrip installed and mmol/L selected as their unit of choice. This PR detects this situation and corrects it with no need for the user to do anything. No toast or log or silent notification will be shown. 2- The user has xDrip installed prior to this PR but after we introduced persistent high threshold and by mistake or intentionally set the persistent high threshold to a value outside the 40-400mg/dL range. After this PR, this situation will be detected and the value will be set to min if the chosen value is less than min or max if the chosen value is greater than max. A silent notification will be shown to notify the user. A corresponding log will also be shown. |
The silent notification only notifies the user that something needs their attention. There is not much detail in it. |
I'm sorry about that redundancy. Thanks so much for all the support. |
Would it help if I rebase this now that the other one has been merged? |
I think something has got broken with the imports or similar as it is failing unit test:
|
Is it OK if I rebase this PR and pull it into my Android Studio and test and re-submit? |
I think it is just missing these imports:
|
Likely got broken when I tried to resolve the merge conflicts not realizing they were needed. |
If you can just pull and add those and push that commit then that should fix it. thanks |
Compiling |
thanks for the fast response, sorry about the import issue |
Thanks a lot |
This PR corrects the value of the preference setting if it is out of range.
The following image shows a log that appears when a correction takes place.