summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 042e4adea546..b527f2cdeb92 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2752,13 +2752,12 @@ static void doc_paintTile(LibreOfficeKitDocument* pThis,
#else
ScopedVclPtrInstance< VirtualDevice > pDevice(DeviceFormat::DEFAULT);
-#if defined(ANDROID) && !HAVE_FEATURE_ANDROID_LOK
+#if !defined(ANDROID) || HAVE_FEATURE_ANDROID_LOK
// Don't set the transparent background in the 'old' (JNI-based) Android
// app - no idea why it needs avoiding this.
- if (false)
-#endif
// Set background to transparent by default.
pDevice->SetBackground(Wallpaper(COL_TRANSPARENT));
+#endif
pDevice->SetOutputSizePixelScaleOffsetAndBuffer(
Size(nCanvasWidth, nCanvasHeight), Fraction(1.0), Point(),