diff --git a/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/maps/renderer/textureview/TextureViewRenderThread.java b/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/maps/renderer/textureview/TextureViewRenderThread.java index 76c5a0a7d..11bddf38f 100644 --- a/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/maps/renderer/textureview/TextureViewRenderThread.java +++ b/platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/maps/renderer/textureview/TextureViewRenderThread.java @@ -7,7 +7,7 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.UiThread; -import java.util.ArrayList; +import java.util.LinkedList; /** * The render thread is responsible for managing the communication between the @@ -24,7 +24,7 @@ abstract class TextureViewRenderThread extends Thread implements TextureView.Sur protected final Object lock = new Object(); // Guarded by lock - protected final ArrayList eventQueue = new ArrayList<>(); + protected final LinkedList eventQueue = new LinkedList<>(); @Nullable protected SurfaceTexture surfaceTexture; protected boolean hasNativeSurface;