Merge branch 'Homocube' of https://gitlab.com/sminnovations/hpos into Homocube
This commit is contained in:
@@ -15,7 +15,7 @@ android {
|
||||
namespace 'in.sminnovations.hpostesting'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "in.sminnovations.hpostesting.prod"
|
||||
applicationId "in.sminnovations.hpostesting"
|
||||
minSdk 21
|
||||
targetSdk 34
|
||||
versionCode 14
|
||||
|
||||
@@ -42,9 +42,12 @@ class UserListAdapter(
|
||||
if (model.incubationTime == "") {
|
||||
btnStartIncubation.visibility = View.VISIBLE
|
||||
} else {
|
||||
userId.text = "User ID:${model._id} \n Time: ${isBetween15And30Minutes(model.incubationTime)}"
|
||||
userId.text =
|
||||
"User ID:${model._id} \n Time: ${isBetween15And30Minutes(model.incubationTime)}"
|
||||
btnStartIncubation.visibility = View.GONE
|
||||
}
|
||||
|
||||
|
||||
Glide.with(view).load(model.userImageURL).into(userImage)
|
||||
if (model.testStatus!!) {
|
||||
teststatus.text = "Test concluded"
|
||||
@@ -64,11 +67,11 @@ class UserListAdapter(
|
||||
"yyyy-MM-dd HH:mm:ss", Locale.getDefault()
|
||||
).format(Calendar.getInstance().time).toString()
|
||||
).addOnSuccessListener {
|
||||
Toast.makeText(
|
||||
view.context, "Incubation started", Toast.LENGTH_SHORT
|
||||
).show()
|
||||
startListening()
|
||||
}
|
||||
Toast.makeText(
|
||||
view.context, "Incubation started", Toast.LENGTH_SHORT
|
||||
).show()
|
||||
startListening()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,4 +126,6 @@ class UserListAdapter(
|
||||
|
||||
return diffMillis / (60 * 1000)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user