DownloadMenuSheet: Show toast if files are missing for install
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -122,6 +122,9 @@ class DownloadMenuSheet : BaseBottomSheet() {
|
|||||||
)
|
)
|
||||||
} catch (exception: Exception) {
|
} catch (exception: Exception) {
|
||||||
Log.e(TAG, "Failed to install ${args.download.packageName}", exception)
|
Log.e(TAG, "Failed to install ${args.download.packageName}", exception)
|
||||||
|
if (exception is NullPointerException) {
|
||||||
|
requireContext().toast(R.string.installer_status_failure_invalid)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user