Kaydet (Commit) ee862723 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

android: check if mTileProvider is available

Change-Id: Ibf2d491ad8867facab6181bec3d26d99a3ffbcf8
üst b21fd935
......@@ -144,6 +144,7 @@ public class LOKitThread extends Thread implements TileProvider.TileInvalidation
}
}
@Override
public void run() {
try {
while (true) {
......@@ -193,6 +194,9 @@ public class LOKitThread extends Thread implements TileProvider.TileInvalidation
if (!LOKitShell.isEditingEnabled()) {
return;
}
if (mTileProvider == null) {
return;
}
if (keyEventType == "KeyPress") {
mTileProvider.keyPress(keyEvent);
} else if (keyEventType.equals("KeyRelease")) {
......@@ -207,6 +211,9 @@ public class LOKitThread extends Thread implements TileProvider.TileInvalidation
if (!LOKitShell.isEditingEnabled()) {
return;
}
if (mTileProvider == null) {
return;
}
LibreOfficeMainActivity.mAppContext.showSoftKeyboard();
mTileProvider.mouseButtonDown(mDocumentTouchCoordinate);
}
......
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