Changes in buffer and sample visibility

This commit is contained in:
chandrashekhar reddy
2024-03-18 12:10:19 +05:30
parent a3484153ed
commit 014e9bdc96
2 changed files with 8 additions and 3 deletions

View File

@@ -449,11 +449,15 @@ class HemoCubeFragment : Fragment() {
hemoCubeViewModel.messages.postValue("Air reading completed") hemoCubeViewModel.messages.postValue("Air reading completed")
fetchResult() fetchResult()
} }
//#EC for v0 and v1 and #RC for v2
(resultData.contains("#EC") && this.testStatusCode < TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code) -> { (resultData.contains("#RC") && this.testStatusCode < TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code) -> {
this.testStatusCode = TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code this.testStatusCode = TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code
hemoCubeViewModel.messages.postValue("EPROM ADC Loaded") hemoCubeViewModel.messages.postValue("EPROM ADC Loaded")
//checkCuvettePresence() //checkCuvettePresence()
activity?.runOnUiThread {
binding.btnPlacebuffer.visibility = View.VISIBLE
binding.btnSamplestart.visibility = View.VISIBLE
}
getTemp() getTemp()
} }
(resultData.contains("#AC") && this.testStatusCode < TestStatus.TEMPERATURE_CHECK.code) -> { (resultData.contains("#AC") && this.testStatusCode < TestStatus.TEMPERATURE_CHECK.code) -> {

View File

@@ -162,7 +162,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:layout_marginTop="24dp" android:layout_marginTop="24dp"
android:visibility="visible" android:visibility="gone"
android:clickable="false" android:clickable="false"
android:text="@string/place_buffer" android:text="@string/place_buffer"
android:textColor="@color/white" android:textColor="@color/white"
@@ -176,6 +176,7 @@
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:clickable="false" android:clickable="false"
android:visibility="gone"
android:text="@string/Start_Sample" android:text="@string/Start_Sample"
android:textColor="@color/white" android:textColor="@color/white"
app:cornerRadius="16dp" app:cornerRadius="16dp"