move interface declaration to the bottom

This commit is contained in:
tibbi 2016-11-06 15:18:17 +01:00
parent 4153a73139
commit 001bf403d1
1 changed files with 4 additions and 4 deletions

View File

@ -90,10 +90,6 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
listener?.gotDirectories(dirs) listener?.gotDirectories(dirs)
} }
interface GetDirectoriesListener {
fun gotDirectories(dirs: ArrayList<Directory>)
}
// sort the files at querying too, just to get the correct thumbnail // sort the files at querying too, just to get the correct thumbnail
private fun getSortOrder(): String { private fun getSortOrder(): String {
val sorting = mConfig.directorySorting val sorting = mConfig.directorySorting
@ -140,4 +136,8 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
dirs.removeAll(ignoreDirs) dirs.removeAll(ignoreDirs)
} }
interface GetDirectoriesListener {
fun gotDirectories(dirs: ArrayList<Directory>)
}
} }