Hi everybody, a mini bug report here.
Android native dialogue windows get closed when clicked outside of their bounds, whereas non-native windows don’t. Also, the callback’s result code when the window is closed that way is 1 (user selected option) and not 0 (cancel). One can observe this using the Demorunner’s DialogsDemo, both on JUCE 7 and 8.
I got the native windows to work as expected (that is, to not close when clicked outside of their bounds) by changing the value in line 63 in juce_gui_basics/native/juce_NativeMessageBox_android.cpp to false:
builder = LocalRef<jobject> (env->CallObjectMethod (builder, AndroidAlertDialogBuilder.setCancelable, false));
That seems to do the trick, but I haven’t properly tested or investigated further.
