update filepicker to 1.5.2

This commit is contained in:
tibbi
2016-11-22 21:25:21 +01:00
parent 756ff2dd2d
commit d1823072a9
3 changed files with 8 additions and 12 deletions

View File

@ -119,11 +119,9 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
override fun breadcrumbClicked(id: Int) {
if (id == 0) {
StoragePickerDialog(this@MainActivity, mBasePath, object : StoragePickerDialog.OnStoragePickerListener {
override fun onPick(pickedPath: String) {
changePath(pickedPath)
}
})
StoragePickerDialog(this@MainActivity, mBasePath) {
changePath(it)
}
} else {
val item = breadcrumbs.getChildAt(id).tag as FileDirItem
openPath(item.path)

View File

@ -159,12 +159,10 @@ class ItemsAdapter(val activity: SimpleActivity, val mItems: List<FileDirItem>,
}
private fun askConfirmDelete() {
ConfirmationDialog(activity, listener = object : ConfirmationDialog.OnConfirmedListener {
override fun onConfirmed() {
actMode?.finish()
prepareForDeleting()
}
})
ConfirmationDialog(activity) {
actMode?.finish()
prepareForDeleting()
}
}
private fun prepareForDeleting() {