diff --git a/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt b/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt index e436200..f9141d5 100644 --- a/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt +++ b/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt @@ -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) -> { diff --git a/app/src/main/res/layout/fragment_hemo_cube_reference.xml b/app/src/main/res/layout/fragment_hemo_cube_reference.xml index 8670265..7bb34de 100644 --- a/app/src/main/res/layout/fragment_hemo_cube_reference.xml +++ b/app/src/main/res/layout/fragment_hemo_cube_reference.xml @@ -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"