buffer value changes added for existing and new buffer

This commit is contained in:
Mariya
2024-03-16 15:24:22 +05:30
parent b47d55fce2
commit 49fda2fdcb

View File

@@ -120,12 +120,12 @@ class HemoCubeFragment : Fragment() {
binding.tvSubtitle4.text = "Config"
if (isBufferValueAvailable() || !Constants.BLANK_EVERY_TEST) {
if (isBufferValueAvailable()){
binding.btnPlacebuffer.apply {
setBackgroundColor(Color.GREEN) // Set button background color to green
text = "Fresh Buffer" // Change button text to "Buffer Exists"
}
}else if(!isBufferValueAvailable() || Constants.BLANK_EVERY_TEST){
}else{
binding.btnPlacebuffer.apply {
setBackgroundColor(Color.RED) // Set button background color to green
text = "No Buffer" // Change button text to "Buffer Exists"