mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
declare some functions private
This commit is contained in:
parent
ad2e8a63bb
commit
c494209523
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue