mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
always create a new list adapter to ensure proper scroll state
This commit is contained in:
@ -261,7 +261,9 @@ class MainActivity : SimpleActivity() {
|
||||
if (!wasBackJustPressed) {
|
||||
wasBackJustPressed = true
|
||||
toast(R.string.press_back_again)
|
||||
Handler().postDelayed({ wasBackJustPressed = false }, BACK_PRESS_TIMEOUT.toLong())
|
||||
Handler().postDelayed({
|
||||
wasBackJustPressed = false
|
||||
}, BACK_PRESS_TIMEOUT.toLong())
|
||||
} else {
|
||||
finish()
|
||||
}
|
||||
@ -318,7 +320,9 @@ class MainActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
fun openedDirectory() {
|
||||
MenuItemCompat.collapseActionView(searchMenuItem)
|
||||
if (searchMenuItem != null) {
|
||||
MenuItemCompat.collapseActionView(searchMenuItem)
|
||||
}
|
||||
}
|
||||
|
||||
private fun checkWhatsNewDialog() {
|
||||
|
Reference in New Issue
Block a user