mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-26 08:13:48 +01:00
avoid 2 checkLastMediaChanged reseting each other
This commit is contained in:
parent
e68392b1e4
commit
fa201e6524
@ -679,7 +679,6 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mLastMediaHandler.removeCallbacksAndMessages(null)
|
|
||||||
mLastMediaHandler.postDelayed({
|
mLastMediaHandler.postDelayed({
|
||||||
Thread {
|
Thread {
|
||||||
val mediaId = getLatestMediaId()
|
val mediaId = getLatestMediaId()
|
||||||
@ -691,6 +690,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||||||
getDirectories()
|
getDirectories()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
mLastMediaHandler.removeCallbacksAndMessages(null)
|
||||||
checkLastMediaChanged()
|
checkLastMediaChanged()
|
||||||
}
|
}
|
||||||
}.start()
|
}.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user