diff --git a/app/src/main/java/org/lineageos/glimpse/thumbnail/ThumbnailLayoutManager.kt b/app/src/main/java/org/lineageos/glimpse/thumbnail/ThumbnailLayoutManager.kt index faaa839..c82e6a6 100644 --- a/app/src/main/java/org/lineageos/glimpse/thumbnail/ThumbnailLayoutManager.kt +++ b/app/src/main/java/org/lineageos/glimpse/thumbnail/ThumbnailLayoutManager.kt @@ -7,7 +7,6 @@ package org.lineageos.glimpse.thumbnail import android.content.Context import androidx.recyclerview.widget.GridLayoutManager -import androidx.recyclerview.widget.RecyclerView import org.lineageos.glimpse.ext.px class ThumbnailLayoutManager( @@ -18,13 +17,6 @@ class ThumbnailLayoutManager( spanSizeLookup = ThumbnailSpanSizeLookup(adapter, spanCount) } - override fun onLayoutChildren(recycler: RecyclerView.Recycler?, state: RecyclerView.State?) { - try { - super.onLayoutChildren(recycler, state) - } catch (_: IndexOutOfBoundsException) { - } - } - private class ThumbnailSpanSizeLookup( private val adapter: ThumbnailAdapter, private val spanCount: Int,