Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55483960 authored by Owen Lin's avatar Owen Lin
Browse files

Fix a issue that we are trying upload a recycled tile.

bug:5779992
Change-Id: I2503c87e9cea4e8b0ad5250b1508d06f44125779
parent 814360ae
Loading
Loading
Loading
Loading
+13 −13
Original line number Diff line number Diff line
@@ -232,7 +232,6 @@ public class TileImageView extends GLView {
            mDecodeQueue.clean();
            mUploadQueue.clean();
            mBackgroundTileUploaded = false;
        }

            // Recycle unused tiles: if the level of the active tile is outside the
            // range [fromLevel, endLevel) or not in the visible range.
@@ -248,6 +247,7 @@ public class TileImageView extends GLView {
                    recycleTile(tile);
                }
            }
        }

        for (int i = fromLevel; i < endLevel; ++i) {
            int size = TILE_SIZE << i;