Skip to content

Commit 9610464

Browse files
fixed missing }
1 parent d24a635 commit 9610464

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/app/src/main/java/com/github/livingwithhippos/unchained/torrentfilepicker/view/TorrentProcessingFragment.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ class TorrentProcessingFragment : UnchainedFragment(), TorrentContentListener {
300300
submitList(getFilteredFiles())
301301
notifyDataSetChanged()
302302
}
303+
}
303304

304305
private fun showMenu(v: View, @MenuRes menuRes: Int) {
305306
val popup = PopupMenu(requireContext(), v)
@@ -433,6 +434,7 @@ class TorrentProcessingFragment : UnchainedFragment(), TorrentContentListener {
433434
}
434435
}
435436

437+
436438
override fun onSelectedFile(item: TorrentFileItem) {
437439
Timber.d("selected file $item was ${item.selected}")
438440
currentStructure?.let { structure ->
@@ -452,9 +454,9 @@ class TorrentProcessingFragment : UnchainedFragment(), TorrentContentListener {
452454
Node.traverseNodeDepthFirst(structure) {
453455
if (
454456
it.value.absolutePath == item.absolutePath &&
455-
it.value.name == item.name &&
456-
it.value.id == TYPE_FOLDER &&
457-
item.id == TYPE_FOLDER
457+
it.value.name == item.name &&
458+
it.value.id == TYPE_FOLDER &&
459+
item.id == TYPE_FOLDER
458460
) {
459461
folderNode = it
460462
return@traverseNodeDepthFirst

0 commit comments

Comments
 (0)