declare some functions private

This commit is contained in:
tibbi 2017-03-04 23:00:02 +01:00
parent ad2e8a63bb
commit c494209523
2 changed files with 5 additions and 5 deletions

View file

@ -307,7 +307,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
super.onActivityResult(requestCode, resultCode, resultData)
}
fun itemClicked(path: String) {
private fun itemClicked(path: String) {
Intent(this, MediaActivity::class.java).apply {
putExtra(DIRECTORY, path)
@ -323,7 +323,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
}
}
fun gotDirectories(dirs: ArrayList<Directory>) {
private fun gotDirectories(dirs: ArrayList<Directory>) {
directories_refresh_layout.isRefreshing = false
mIsGettingDirs = false
@ -336,7 +336,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
storeDirectories()
}
fun storeDirectories() {
private fun storeDirectories() {
val directories = Gson().toJson(mDirs)
config.directories = directories
}

View file

@ -299,7 +299,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
private fun isSetWallpaperIntent() = intent.getBooleanExtra(SET_WALLPAPER_INTENT, false)
fun itemClicked(path: String) {
private fun itemClicked(path: String) {
if (isSetWallpaperIntent()) {
toast(R.string.setting_wallpaper)
@ -344,7 +344,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
}
}
fun gotMedia(media: ArrayList<Medium>) {
private fun gotMedia(media: ArrayList<Medium>) {
mIsGettingMedia = false
media_refresh_layout.isRefreshing = false