make sure we populate the viewpager from the main thread

This commit is contained in:
tibbi 2017-07-02 09:07:34 +02:00
parent 2acbc1a02e
commit 13980f9a8e
2 changed files with 6 additions and 2 deletions

View File

@ -382,7 +382,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
mDirs = dirs
setupAdapter()
runOnUiThread {
setupAdapter()
}
storeDirectories()
}

View File

@ -449,7 +449,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
mLastDrawnHashCode = media.hashCode()
mMedia = media
setupAdapter()
runOnUiThread {
setupAdapter()
}
storeFolder()
}