show result processing message

This commit is contained in:
Pritimay Sarkar
2023-11-09 08:14:38 +05:30
parent 9deac8e278
commit 29846ddf7d

View File

@@ -392,6 +392,7 @@ class HemoCubeFragment : Fragment() {
private fun processResult() {
try {
hemoCubeViewModel.messages.postValue("processing result")
val deviceLog = resultData
val pInfo = requireActivity().packageManager.getPackageInfo(
@@ -462,6 +463,7 @@ class HemoCubeFragment : Fragment() {
private fun findResult(calculatedRatio: Double?): String {
try {
hemoCubeViewModel.messages.postValue("result classification")
if (calculatedRatio != null) {
if (calculatedRatio < 0.05)
return "Inconclusive. Very low Absorbance - Repeat test with Higher Blood Volume"