Added 2 Buffer values

This commit is contained in:
smileomi18@gmail.com
2023-08-03 16:44:04 +05:30
parent 567fe237da
commit 340b656990
3 changed files with 6 additions and 3 deletions

View File

@@ -47,5 +47,6 @@ object Constants {
const val KIT_NUMBER = "KitNumber"
const val KIT_COUNT = "KitCount"
const val BUFFER_VALUE = "BufferValue"
const val BUFFER_VALUE_1 = "BufferValue1"
const val BUFFER_VALUE_2 = "BufferValue2"
}

View File

@@ -60,7 +60,8 @@ class KitScanActivity : AppCompatActivity() {
with(sharedPreference.edit()) {
putString(Constants.KIT_NUMBER, "")
putInt(Constants.KIT_COUNT, 0)
putInt(Constants.BUFFER_VALUE, 0)
putInt(Constants.BUFFER_VALUE_1, 0)
putInt(Constants.BUFFER_VALUE_2, 0)
apply()
}
}

View File

@@ -103,7 +103,8 @@ class HemoCubeFragment : Fragment() {
}
private fun checkBufferValue(): Boolean {
return sharedPreference.getInt(Constants.BUFFER_VALUE, 0) > 0
return sharedPreference.getInt(Constants.BUFFER_VALUE_1, 0) > 0
|| sharedPreference.getInt(Constants.BUFFER_VALUE_2, 0) > 0
}
private fun setupButtonClickListeners() {