Don't scroll to the top of the game list on adapter changes

This commit is contained in:
lynxnb 2023-04-27 00:30:25 +02:00
parent caa15f729f
commit e6efaf26bc

View File

@ -107,11 +107,7 @@ class MainActivity : AppCompatActivity() {
PreferenceManager.setDefaultValues(this, R.xml.app_preferences, false)
PreferenceManager.setDefaultValues(this, R.xml.emulation_preferences, false)
adapter.apply {
setOnFilterPublishedListener {
binding.appList.post { binding.appList.smoothScrollToPosition(0) }
}
}
binding.appList.setHasFixedSize(true)
setupAppList()