NetworkStatusLiveData.kt has been removed
This commit is contained in:
@@ -20,8 +20,8 @@ android {
|
||||
applicationId "in.sminnovations.hpostesting.server"
|
||||
minSdk 30
|
||||
targetSdk 34
|
||||
versionCode 133
|
||||
versionName "2.1.131"
|
||||
versionCode 134
|
||||
versionName "2.1.132"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
||||
@@ -141,6 +141,9 @@ class KitScanActivity : AppCompatActivity(), IDcsSdkApiDelegate {
|
||||
val time = timeDifference(sharedPreference.getString(Constants.KIT_TIME, "").toString())
|
||||
val kitNum = sharedPreference.getString(Constants.KIT_NUMBER, "").toString()
|
||||
// Toast.makeText(this@KitScanActivity,"Test MAx time"+ time+"-Test count-"+kitNum,Toast.LENGTH_SHORT).show()
|
||||
// if (sharedPreference.getString(Constants.USER_ID, "").toString() == "ADMIN") {
|
||||
// moveToNext()
|
||||
// }else{
|
||||
if (sharedPreference.getString(Constants.USER_ID, "").toString() == "ADMIN") {
|
||||
moveToNext()
|
||||
}else{
|
||||
|
||||
@@ -1390,6 +1390,7 @@ class TrueHemeTestFragment : Fragment() {
|
||||
apply()
|
||||
}
|
||||
}
|
||||
trueHemeTestViewModel.updateLocalData()
|
||||
} catch (e: Exception) {
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
|
||||
@@ -795,4 +795,11 @@ class TrueHemeTestViewModel @Inject constructor(
|
||||
"yyyy-MM-dd HH:mm:ss", Locale.getDefault()
|
||||
).format(Calendar.getInstance().time)
|
||||
}
|
||||
fun updateLocalData() {
|
||||
viewModelScope.launch {
|
||||
parseData()
|
||||
hemoCubeDao.updateTest(testDetails!!)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user