removed unwanted toast messages
This commit is contained in:
@@ -379,20 +379,20 @@ class HomeFragment : Fragment() {
|
||||
val fileName = "nats_certificate.zip"
|
||||
val downloadDirectory = "NATS"
|
||||
val file = downloadFile(url, requireContext(), fileName, downloadDirectory)
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
"NATS certificate Downloaded",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
// Toast.makeText(
|
||||
// requireContext(),
|
||||
// "NATS certificate Downloaded",
|
||||
// Toast.LENGTH_SHORT
|
||||
// ).show()
|
||||
|
||||
val unzipDirectoryPath =
|
||||
requireContext().getExternalFilesDir(null)?.absolutePath + "/$downloadDirectory"
|
||||
unzip(file.absolutePath, unzipDirectoryPath)
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
"NATS certificate Extracted",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
// Toast.makeText(
|
||||
// requireContext(),
|
||||
// "NATS certificate Extracted",
|
||||
// Toast.LENGTH_SHORT
|
||||
// ).show()
|
||||
}
|
||||
|
||||
is Result.Error -> {
|
||||
|
||||
Reference in New Issue
Block a user