make sure we populate the viewpager from the main thread
This commit is contained in:
parent
2acbc1a02e
commit
13980f9a8e
|
@ -382,7 +382,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
|
||||
mDirs = dirs
|
||||
|
||||
runOnUiThread {
|
||||
setupAdapter()
|
||||
}
|
||||
storeDirectories()
|
||||
}
|
||||
|
||||
|
|
|
@ -449,7 +449,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
|
||||
mLastDrawnHashCode = media.hashCode()
|
||||
mMedia = media
|
||||
runOnUiThread {
|
||||
setupAdapter()
|
||||
}
|
||||
storeFolder()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue