buffer value changes added for existing and new buffer

This commit is contained in:
Mariya
2024-03-16 13:52:17 +05:30
parent c61ed451f9
commit 718b26c92d

View File

@@ -121,12 +121,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"