Skip to content

Commit

Permalink
feat: Added toast for completed downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmurerwa committed Oct 12, 2021
1 parent dbf6b82 commit 4287d6f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ class FirstFragment : Fragment(R.layout.fragment_first), DownloadInterface {

override fun onDownloadCompleted() {
super.onDownloadCompleted()
// Toast.makeText(context, "Download completed", Toast.LENGTH_SHORT).show()
Toast.makeText(context, "Download completed", Toast.LENGTH_SHORT).show()

if (fileDownloader.checkIfFileExists()) {
Toast.makeText(context, "File exists", Toast.LENGTH_SHORT).show()
}
// if (fileDownloader.checkIfFileExists()) {
// Toast.makeText(context, "File exists", Toast.LENGTH_SHORT).show()
// }
}

override fun onErrorOccurred(error: String) {
Expand Down

0 comments on commit 4287d6f

Please sign in to comment.