Kaydet (Commit) bc21df05 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

No dialogs to be shown from vcl in a non-NativeActivity Android app

üst a5aa747d
......@@ -46,7 +46,9 @@
#include <vcl/msgbox.hxx>
#include <vcl/unowrap.hxx>
#ifdef ANDROID
#include <osl/detail/android-bootstrap.h>
#endif
// =======================================================================
......@@ -592,6 +594,14 @@ sal_Bool Dialog::Close()
sal_Bool Dialog::ImplStartExecuteModal()
{
#ifdef ANDROID
// If a non-NativeActivity app, we shouldn't be showing any dialogs
if (lo_get_app() == NULL) {
fprintf(stderr, "%s: Should not do anything, returning false\n", __FUNCTION__);
return sal_False;
}
#endif
if ( mbInExecute )
{
#ifdef DBG_UTIL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment