mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
show a spinner while loading directories for the first time
This commit is contained in:
parent
77c581e34d
commit
c2f268d004
1 changed files with 5 additions and 1 deletions
|
@ -134,7 +134,11 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
|
||||
val token = object : TypeToken<List<Directory>>() {}.type
|
||||
val dirs = Gson().fromJson<ArrayList<Directory>>(config.directories, token) ?: ArrayList<Directory>(1)
|
||||
if (dirs.size == 0) {
|
||||
directories_holder.isRefreshing = true
|
||||
} else {
|
||||
gotDirectories(dirs)
|
||||
}
|
||||
|
||||
mIsGettingDirs = true
|
||||
GetDirectoriesAsynctask(applicationContext, mIsPickVideoIntent || mIsGetVideoContentIntent, mIsPickImageIntent || mIsGetImageContentIntent) {
|
||||
|
|
Loading…
Reference in a new issue