mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
make sure we populate the viewpager from the main thread
This commit is contained in:
parent
2acbc1a02e
commit
13980f9a8e
2 changed files with 6 additions and 2 deletions
|
@ -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 a new issue