mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-12 13: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
|
view = LayoutInflater.from(activity).inflate(R.layout.dialog_change_sorting, null) as ViewGroup
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, this)
|
.setPositiveButton(R.string.ok, this)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
|
|
@ -33,7 +33,6 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
|
||||||
}
|
}
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
|
|
@ -23,7 +23,6 @@ class PickAlbumDialog(val activity: SimpleActivity, val callback: (path: String)
|
||||||
directoriesGrid = view.directories_grid
|
directoriesGrid = view.directories_grid
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.setNeutralButton(R.string.other_folder, { dialogInterface, i -> showOtherFolder() })
|
.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)}/"
|
view.directory_path.text = "${activity.humanizePath(dir.parent)}/"
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
|
|
@ -29,7 +29,6 @@ class RenameFileDialog(val activity: SimpleActivity, val file: File, val callbac
|
||||||
view.file_path.text = "${activity.humanizePath(file.parent)}/"
|
view.file_path.text = "${activity.humanizePath(file.parent)}/"
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
|
|
@ -70,7 +70,6 @@ class ResizeDialog(val activity: SimpleActivity, val size: Point, val callback:
|
||||||
})
|
})
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
|
|
@ -43,7 +43,6 @@ class SaveAsDialog(val activity: Activity, val path: String, val callback: (save
|
||||||
}
|
}
|
||||||
|
|
||||||
AlertDialog.Builder(activity)
|
AlertDialog.Builder(activity)
|
||||||
.setView(view)
|
|
||||||
.setPositiveButton(R.string.ok, null)
|
.setPositiveButton(R.string.ok, null)
|
||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.create().apply {
|
.create().apply {
|
||||||
|
|
Loading…
Reference in a new issue