remove the explicit setView call at dialogs

This commit is contained in:
tibbi 2016-12-26 13:14:54 +01:00
parent c383a530dd
commit 431acaf092
7 changed files with 0 additions and 7 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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() })

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {