|
@@ -8,7 +8,6 @@ import android.view.MenuInflater
|
|
|
import android.view.MenuItem
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
|
-import androidx.core.view.get
|
|
|
import androidx.core.view.isVisible
|
|
|
import androidx.core.view.updatePadding
|
|
|
import androidx.recyclerview.widget.GridLayoutManager
|
|
@@ -203,7 +202,7 @@ open class BrowseSourceController(bundle: Bundle) :
|
|
|
numColumnsJob?.cancel()
|
|
|
|
|
|
var oldPosition = RecyclerView.NO_POSITION
|
|
|
- val oldRecycler = binding.catalogueView[1]
|
|
|
+ val oldRecycler = binding.catalogueView.getChildAt(1)
|
|
|
if (oldRecycler is RecyclerView) {
|
|
|
oldPosition = (oldRecycler.layoutManager as LinearLayoutManager).findFirstVisibleItemPosition()
|
|
|
oldRecycler.adapter = null
|