Added 2 Buffer values
This commit is contained in:
@@ -47,5 +47,6 @@ object Constants {
|
|||||||
|
|
||||||
const val KIT_NUMBER = "KitNumber"
|
const val KIT_NUMBER = "KitNumber"
|
||||||
const val KIT_COUNT = "KitCount"
|
const val KIT_COUNT = "KitCount"
|
||||||
const val BUFFER_VALUE = "BufferValue"
|
const val BUFFER_VALUE_1 = "BufferValue1"
|
||||||
|
const val BUFFER_VALUE_2 = "BufferValue2"
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,8 @@ class KitScanActivity : AppCompatActivity() {
|
|||||||
with(sharedPreference.edit()) {
|
with(sharedPreference.edit()) {
|
||||||
putString(Constants.KIT_NUMBER, "")
|
putString(Constants.KIT_NUMBER, "")
|
||||||
putInt(Constants.KIT_COUNT, 0)
|
putInt(Constants.KIT_COUNT, 0)
|
||||||
putInt(Constants.BUFFER_VALUE, 0)
|
putInt(Constants.BUFFER_VALUE_1, 0)
|
||||||
|
putInt(Constants.BUFFER_VALUE_2, 0)
|
||||||
apply()
|
apply()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,8 @@ class HemoCubeFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun checkBufferValue(): Boolean {
|
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() {
|
private fun setupButtonClickListeners() {
|
||||||
|
|||||||
Reference in New Issue
Block a user