Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Use AfterDirectoryInitializationRunner on FAB press #10919

Merged
merged 1 commit into from Aug 3, 2022

Conversation

JosJuice
Copy link
Member

Without this, if the user finishes selecting a directory before directory initialization finishes, MainPresenter.onDirectorySelected will segfault when trying to read the MAIN_RECURSIVE_ISO_PATHS setting.

An alternative would be to useAfterDirectoryInitializationRunner after the user selects the directory instead of before, but it might be confusing for the user to deal with the usage statistics prompt when they were expecting to add a folder.

Without this, if the user finishes selecting a directory before
directory initialization finishes, MainPresenter.onDirectorySelected
will segfault when trying to read the MAIN_RECURSIVE_ISO_PATHS setting.

An alternative would be to use AfterDirectoryInitializationRunner
after the user selects the directory instead of before, but it might
be confusing for the user to deal with the usage statistics prompt
when they were expecting to add a folder.
@JMC47
Copy link
Contributor

JMC47 commented Jul 29, 2022

Fixes the crash where I was speedrunning setting up folders to test after installing new PRs.

@lioncash lioncash merged commit 1733371 into dolphin-emu:master Aug 3, 2022
11 checks passed
@JosJuice JosJuice deleted the android-wait-on-fab-click branch August 3, 2022 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants