The application shall provide a confirmation message or indication upon successful data saving. - Added ID in toast
This commit is contained in:
@@ -205,6 +205,13 @@ class HemoCubeFragment : Fragment() {
|
||||
it1._id
|
||||
)
|
||||
}
|
||||
if(!Constants.FIREBASE_INTEGRATION) {
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
testDetails?._id + ": id details stored successfully",
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
}
|
||||
handleReadingFinish()
|
||||
hemoCubeViewModel.uploadLogs()
|
||||
val sharedPreferences = requireContext().getSharedPreferences("NATSCertificatePrefs", Context.MODE_PRIVATE)
|
||||
@@ -257,11 +264,14 @@ class HemoCubeFragment : Fragment() {
|
||||
if (result == "Success") {
|
||||
uploadedToCloud = true
|
||||
var accessToken = sharedPreferences.getString(Constants.ACCESS_TOKEN, "").toString()
|
||||
showToast(R.string.test_upload)
|
||||
// showToast( R.string.test_upload)
|
||||
Toast.makeText(requireContext(), testDetails?._id +": id details stored successfully",Toast.LENGTH_LONG).show()
|
||||
|
||||
|
||||
}
|
||||
if (result == "Local") {
|
||||
showToast(R.string.internt_not_local)
|
||||
// showToast(R.string.internt_not_local)
|
||||
Toast.makeText(requireContext(), testDetails?._id +": id details stored locally, Internet is not Available",Toast.LENGTH_LONG).show()
|
||||
startActivity(Intent(requireActivity(), DashboardActivity::class.java))
|
||||
}
|
||||
if (result == "Error") {
|
||||
|
||||
Reference in New Issue
Block a user