From c494209523bed7ab158ae93aa26fc8aeb5bd6279 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 4 Mar 2017 23:00:02 +0100 Subject: [PATCH] declare some functions private --- .../simplemobiletools/gallery/activities/MainActivity.kt | 6 +++--- .../simplemobiletools/gallery/activities/MediaActivity.kt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 53af38f20..4a24dedd1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -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) { + private fun gotDirectories(dirs: ArrayList) { 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 } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index 6677d1464..48f818bcd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -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) { + private fun gotMedia(media: ArrayList) { mIsGettingMedia = false media_refresh_layout.isRefreshing = false