mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-31 19:54:48 +01:00
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
|
||||
|
||||
setupAdapter()
|
||||
runOnUiThread {
|
||||
setupAdapter()
|
||||
}
|
||||
storeDirectories()
|
||||
}
|
||||
|
||||
|
@ -449,7 +449,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||
|
||||
mLastDrawnHashCode = media.hashCode()
|
||||
mMedia = media
|
||||
setupAdapter()
|
||||
runOnUiThread {
|
||||
setupAdapter()
|
||||
}
|
||||
storeFolder()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user