Trying to launch a dialog from inside a filechooser crashes on Android


#1

Hi, following code works ok on all platforms but crashes Android:

FileChooser *p_fc = new FileChooser( "Locate License File", File::getCurrentWorkingDirectory(), "*.*", true );

p_fc->launchAsync( FileBrowserComponent::openMode | 
    FileBrowserComponent::canSelectFiles,
    [ = ]( const FileChooser& fc ) {
        AlertWindow::showMessageBoxAsync( AlertWindow::WarningIcon, "test", "test" );
} );

Should this be a valid thing to do on Android too?

thx


#2

This commit should fix it.


#3

fixed, thx!