android: TileProvider is unused in InvalidationHandler
Change-Id: I455e58f4395cb463efa888fe69ee7ea48b4681fb
This commit is contained in:
committed by
Miklos Vajna
parent
772e5c9f1c
commit
93fbb7369d
@@ -19,24 +19,14 @@ public class InvalidationHandler implements Document.MessageCallback {
|
||||
private static String LOGTAG = InvalidationHandler.class.getSimpleName();
|
||||
private final TextCursorLayer mTextCursorLayer;
|
||||
private final TextSelection mTextSelection;
|
||||
private TileProvider mTileProvider;
|
||||
private OverlayState mState;
|
||||
|
||||
public InvalidationHandler(LibreOfficeMainActivity mainActivity) {
|
||||
mTextCursorLayer = mainActivity.getTextCursorLayer();
|
||||
mTextSelection = mainActivity.getTextSelection();
|
||||
mTileProvider = null;
|
||||
mState = OverlayState.NONE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the tile provider, without this the
|
||||
* @param tileProvider
|
||||
*/
|
||||
public void setTileProvider(TileProvider tileProvider) {
|
||||
mTileProvider = tileProvider;
|
||||
}
|
||||
|
||||
/**
|
||||
* Processes callback message
|
||||
*
|
||||
|
@@ -178,7 +178,6 @@ public class LOKitThread extends Thread {
|
||||
|
||||
mInvalidationHandler = new InvalidationHandler(LibreOfficeMainActivity.mAppContext);
|
||||
mTileProvider = TileProviderFactory.create(mLayerClient, mInvalidationHandler, filename);
|
||||
mInvalidationHandler.setTileProvider(mTileProvider);
|
||||
|
||||
if (mTileProvider.isReady()) {
|
||||
LOKitShell.showProgressSpinner();
|
||||
|
Reference in New Issue
Block a user