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 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 {
|
|||||||
|
|
||||||
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();
|
||||||
|
Reference in New Issue
Block a user