summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-26 09:56:01 -0500
committerGitHub <noreply@github.com>2024-01-26 09:56:01 -0500
commit59aee2b4617811a07307fddcb03c0d55cdc8e16b (patch)
treee0cf4cc9abc9d4bea045b0290ec0c28e0c908576 /src
parent4d206d849ec0ac2e90226eb67d90b310afd0a269 (diff)
parente56b44dee6c58915f1abbe55bb159e09eeecd8f8 (diff)
Merge pull request #12809 from t895/error-message
android: Add cancel condition to installed content check
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
index aefae2938..1f3578b22 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/HomeSettingsFragment.kt
@@ -153,7 +153,13 @@ class HomeSettingsFragment : Fragment() {
cancellable = true
) { progressCallback, _ ->
val result = NativeLibrary.verifyInstalledContents(progressCallback)
- return@newInstance if (result.isEmpty()) {
+ return@newInstance if (progressCallback.invoke(100, 100)) {
+ // Invoke the progress callback to check if the process was cancelled
+ MessageDialogFragment.newInstance(
+ titleId = R.string.verify_no_result,
+ descriptionId = R.string.verify_no_result_description
+ )
+ } else if (result.isEmpty()) {
MessageDialogFragment.newInstance(
titleId = R.string.verify_success,
descriptionId = R.string.operation_completed_successfully