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")
fetchResult()
}
(resultData.contains("#EC") && this.testStatusCode < TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code) -> {
//#EC for v0 and v1 and #RC for v2
(resultData.contains("#RC") && this.testStatusCode < TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code) -> {
this.testStatusCode = TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code
hemoCubeViewModel.messages.postValue("EPROM ADC Loaded")
//checkCuvettePresence()
activity?.runOnUiThread {
binding.btnPlacebuffer.visibility = View.VISIBLE
binding.btnSamplestart.visibility = View.VISIBLE
}
getTemp()
}
(resultData.contains("#AC") && this.testStatusCode < TestStatus.TEMPERATURE_CHECK.code) -> {

View File

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