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

android: TileProvider is unused in InvalidationHandler

Change-Id: I455e58f4395cb463efa888fe69ee7ea48b4681fb
üst 772e5c9f
...@@ -19,24 +19,14 @@ public class InvalidationHandler implements Document.MessageCallback { ...@@ -19,24 +19,14 @@ public class InvalidationHandler implements Document.MessageCallback {
private static String LOGTAG = InvalidationHandler.class.getSimpleName(); private static String LOGTAG = InvalidationHandler.class.getSimpleName();
private final TextCursorLayer mTextCursorLayer; private final TextCursorLayer mTextCursorLayer;
private final TextSelection mTextSelection; private final TextSelection mTextSelection;
private TileProvider mTileProvider;
private OverlayState mState; private OverlayState mState;
public InvalidationHandler(LibreOfficeMainActivity mainActivity) { public InvalidationHandler(LibreOfficeMainActivity mainActivity) {
mTextCursorLayer = mainActivity.getTextCursorLayer(); mTextCursorLayer = mainActivity.getTextCursorLayer();
mTextSelection = mainActivity.getTextSelection(); mTextSelection = mainActivity.getTextSelection();
mTileProvider = null;
mState = OverlayState.NONE; mState = OverlayState.NONE;
} }
/**
* Sets the tile provider, without this the
* @param tileProvider
*/
public void setTileProvider(TileProvider tileProvider) {
mTileProvider = tileProvider;
}
/** /**
* Processes callback message * Processes callback message
* *
......
...@@ -178,7 +178,6 @@ public class LOKitThread extends Thread { ...@@ -178,7 +178,6 @@ public class LOKitThread extends Thread {
mInvalidationHandler = new InvalidationHandler(LibreOfficeMainActivity.mAppContext); mInvalidationHandler = new InvalidationHandler(LibreOfficeMainActivity.mAppContext);
mTileProvider = TileProviderFactory.create(mLayerClient, mInvalidationHandler, filename); mTileProvider = TileProviderFactory.create(mLayerClient, mInvalidationHandler, filename);
mInvalidationHandler.setTileProvider(mTileProvider);
if (mTileProvider.isReady()) { if (mTileProvider.isReady()) {
LOKitShell.showProgressSpinner(); LOKitShell.showProgressSpinner();
......
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