Don't scroll to the top of the game list on adapter changes
This commit is contained in:
parent
caa15f729f
commit
e6efaf26bc
|
@ -107,11 +107,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
PreferenceManager.setDefaultValues(this, R.xml.app_preferences, false)
|
PreferenceManager.setDefaultValues(this, R.xml.app_preferences, false)
|
||||||
PreferenceManager.setDefaultValues(this, R.xml.emulation_preferences, false)
|
PreferenceManager.setDefaultValues(this, R.xml.emulation_preferences, false)
|
||||||
|
|
||||||
adapter.apply {
|
binding.appList.setHasFixedSize(true)
|
||||||
setOnFilterPublishedListener {
|
|
||||||
binding.appList.post { binding.appList.smoothScrollToPosition(0) }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
setupAppList()
|
setupAppList()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue