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
|
mDirs = dirs
|
||||||
|
|
||||||
setupAdapter()
|
runOnUiThread {
|
||||||
|
setupAdapter()
|
||||||
|
}
|
||||||
storeDirectories()
|
storeDirectories()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -449,7 +449,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
|
|
||||||
mLastDrawnHashCode = media.hashCode()
|
mLastDrawnHashCode = media.hashCode()
|
||||||
mMedia = media
|
mMedia = media
|
||||||
setupAdapter()
|
runOnUiThread {
|
||||||
|
setupAdapter()
|
||||||
|
}
|
||||||
storeFolder()
|
storeFolder()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue