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

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 | 
    [ = ]( const FileChooser& fc ) {
        AlertWindow::showMessageBoxAsync( AlertWindow::WarningIcon, "test", "test" );
} );

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


This commit should fix it.

1 Like

fixed, thx!