summaryrefslogtreecommitdiff
path: root/vcl/android
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/android')
-rw-r--r--vcl/android/androidinst.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx
index 52ebe53b4af8..014b1e36b003 100644
--- a/vcl/android/androidinst.cxx
+++ b/vcl/android/androidinst.cxx
@@ -605,6 +605,19 @@ void AndroidSalInstance::Wakeup()
void AndroidSalInstance::DoReleaseYield (int nTimeoutMS)
{
+ // Presumably this should never be called at all except in
+ // NativeActivity-based apps with a GUI, like android/qa/desktop, where
+ // the message pump is run here in vcl?
+ if (!mpApp) {
+ static bool beenhere = false;
+ if (!beenhere)
+ {
+ fprintf (stderr, "**** Huh, %s called in non-NativeActivity app\n", __FUNCTION__);
+ beenhere = true;
+ }
+ return;
+ }
+
// release yield mutex
sal_uLong nAcquireCount = ReleaseYieldMutex();