diff options
-rw-r--r-- | android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java b/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java index 4f027ecf7c1a..91af73145788 100644 --- a/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java +++ b/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java @@ -188,8 +188,8 @@ public class DocumentLoader Bootstrap.dlopen("libswdlo.so"); Bootstrap.dlopen("libswlo.so"); - // Log.i(TAG, "Sleeping NOW"); - // Thread.sleep(20000); + Log.i(TAG, "Sleeping NOW"); + Thread.sleep(20000); XComponentContext xContext = null; @@ -311,6 +311,13 @@ public class DocumentLoader return; } + if (imagebb.getInt(0x36) != 0x000000ff | + imagebb.getInt(0x3a) != 0x0000ff00 || + imagebb.getInt(0x3e) != 0x00ff0000) { + Log.wtf(TAG, "getDIB() didn't return DIB in RGBX format"); + return; + } + int offset = imagebb.getInt(0x0a); int width = imagebb.getInt(0x12); int height = imagebb.getInt(0x16); |