mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
android: Add cancel condition to installed content check
This commit is contained in:
parent
4526fdaf64
commit
e56b44dee6
1 changed files with 7 additions and 1 deletions
|
@ -153,7 +153,13 @@ class HomeSettingsFragment : Fragment() {
|
||||||
cancellable = true
|
cancellable = true
|
||||||
) { progressCallback, _ ->
|
) { progressCallback, _ ->
|
||||||
val result = NativeLibrary.verifyInstalledContents(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(
|
MessageDialogFragment.newInstance(
|
||||||
titleId = R.string.verify_success,
|
titleId = R.string.verify_success,
|
||||||
descriptionId = R.string.operation_completed_successfully
|
descriptionId = R.string.operation_completed_successfully
|
||||||
|
|
Loading…
Reference in a new issue