From 8de734761f110225c3541bac6e814cef5c89d2a2 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Sat, 20 Jan 2024 15:28:01 +0530 Subject: [PATCH] DownloadMenuSheet: Show toast if files are missing for install Signed-off-by: Aayush Gupta --- .../java/com/aurora/store/view/ui/sheets/DownloadMenuSheet.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/aurora/store/view/ui/sheets/DownloadMenuSheet.kt b/app/src/main/java/com/aurora/store/view/ui/sheets/DownloadMenuSheet.kt index bf38d44a1..9cb5f9f58 100644 --- a/app/src/main/java/com/aurora/store/view/ui/sheets/DownloadMenuSheet.kt +++ b/app/src/main/java/com/aurora/store/view/ui/sheets/DownloadMenuSheet.kt @@ -122,6 +122,9 @@ class DownloadMenuSheet : BaseBottomSheet() { ) } catch (exception: Exception) { Log.e(TAG, "Failed to install ${args.download.packageName}", exception) + if (exception is NullPointerException) { + requireContext().toast(R.string.installer_status_failure_invalid) + } } } }