mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-03 17:57:59 +01:00
remove the explicit setView call at dialogs
This commit is contained in:
parent
c383a530dd
commit
431acaf092
7 changed files with 0 additions and 7 deletions
|
@ -23,7 +23,6 @@ class ChangeSortingDialog(val activity: SimpleActivity, val isDirectorySorting:
|
|||
view = LayoutInflater.from(activity).inflate(R.layout.dialog_change_sorting, null) as ViewGroup
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, this)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create().apply {
|
||||
|
|
|
@ -33,7 +33,6 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
|
|||
}
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create().apply {
|
||||
|
|
|
@ -23,7 +23,6 @@ class PickAlbumDialog(val activity: SimpleActivity, val callback: (path: String)
|
|||
directoriesGrid = view.directories_grid
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setNeutralButton(R.string.other_folder, { dialogInterface, i -> showOtherFolder() })
|
||||
|
|
|
@ -19,7 +19,6 @@ class RenameDirectoryDialog(val activity: SimpleActivity, val dir: File, val cal
|
|||
view.directory_path.text = "${activity.humanizePath(dir.parent)}/"
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create().apply {
|
||||
|
|
|
@ -29,7 +29,6 @@ class RenameFileDialog(val activity: SimpleActivity, val file: File, val callbac
|
|||
view.file_path.text = "${activity.humanizePath(file.parent)}/"
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create().apply {
|
||||
|
|
|
@ -70,7 +70,6 @@ class ResizeDialog(val activity: SimpleActivity, val size: Point, val callback:
|
|||
})
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create().apply {
|
||||
|
|
|
@ -43,7 +43,6 @@ class SaveAsDialog(val activity: Activity, val path: String, val callback: (save
|
|||
}
|
||||
|
||||
AlertDialog.Builder(activity)
|
||||
.setView(view)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.create().apply {
|
||||
|
|
Loading…
Reference in a new issue