diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-02-15 15:10:22 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-02-23 10:10:20 +0100 |
commit | c207e6cd5807355c1dbd23f662d1106b9e23dacc (patch) | |
tree | 45a2e285b20845e18bb6dda0d8f2c199342edfb0 /android | |
parent | fd22d4b9b5e7bf9a1b54041f52a081d1a98e5332 (diff) |
android: fix "invalidate()..." exception
Fix "invalidate() is only valid inside a transaction" exception.
Change-Id: I550811a0324bece298ac1a583e4198ae280586f6
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java index 44cb7e3f9e34..a98b6cc75768 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LOKitThread.java @@ -55,16 +55,14 @@ public class LOKitThread extends Thread implements TileProvider.TileInvalidation return; } + mLayerClient.beginDrawing(); + List<SubTile> tiles = new ArrayList<SubTile>(); mLayerClient.invalidateTiles(tiles, rect); for (SubTile tile : tiles) { CairoImage image = mTileProvider.createTile(tile.id.x, tile.id.y, tile.id.size, tile.id.zoom); tile.setImage(image); - } - - mLayerClient.beginDrawing(); - for (SubTile tile : tiles) { tile.invalidate(); } mLayerClient.endDrawing(); |