mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +01:00
make some variables in ChangeSortingDialog private
This commit is contained in:
parent
234b2ed933
commit
9272fbc3a3
1 changed files with 3 additions and 7 deletions
|
@ -16,15 +16,11 @@ import kotlinx.android.synthetic.main.dialog_change_sorting.view.*
|
||||||
class ChangeSortingDialog(val activity: SimpleActivity, val isDirectorySorting: Boolean, showFolderCheckbox: Boolean,
|
class ChangeSortingDialog(val activity: SimpleActivity, val isDirectorySorting: Boolean, showFolderCheckbox: Boolean,
|
||||||
val path: String = "", val callback: () -> Unit) :
|
val path: String = "", val callback: () -> Unit) :
|
||||||
DialogInterface.OnClickListener {
|
DialogInterface.OnClickListener {
|
||||||
companion object {
|
|
||||||
private var currSorting = 0
|
private var currSorting = 0
|
||||||
|
private var config: Config = activity.config
|
||||||
lateinit var config: Config
|
private var view: View
|
||||||
lateinit var view: View
|
|
||||||
}
|
|
||||||
|
|
||||||
init {
|
init {
|
||||||
config = activity.config
|
|
||||||
view = LayoutInflater.from(activity).inflate(R.layout.dialog_change_sorting, null).apply {
|
view = LayoutInflater.from(activity).inflate(R.layout.dialog_change_sorting, null).apply {
|
||||||
use_for_this_folder_divider.beVisibleIf(showFolderCheckbox)
|
use_for_this_folder_divider.beVisibleIf(showFolderCheckbox)
|
||||||
sorting_dialog_use_for_this_folder.beVisibleIf(showFolderCheckbox)
|
sorting_dialog_use_for_this_folder.beVisibleIf(showFolderCheckbox)
|
||||||
|
|
Loading…
Reference in a new issue