mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
update filepicker to 1.5.2
This commit is contained in:
@ -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)
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user