Skip to content

Commit 4037597

Browse files
authored
Merge pull request #591 from namehillsoftware/bugfix/file-details-from-search-screen
[Bugfix] Viewing File Details from Search Screen
2 parents 1b1f235 + 1f9d11d commit 4037597

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ annotation = "1.9.1"
66
assertjCore = "3.27.6"
77
commonsCodec = "1.19.0"
88
commonsIo = "2.20.0"
9-
compose = "1.9.3"
9+
compose = "1.9.4"
1010
coreKtx = "1.17.0"
1111
desugar_jdk_libs = "2.1.5"
1212
gson = "2.13.2"
@@ -18,7 +18,7 @@ junit = "4.13.2"
1818
junitJupiterApi = "6.0.0"
1919
junitKtx = "1.3.0"
2020
kotlinxCoroutinesRx3 = "1.10.2"
21-
kotlin = "2.2.20"
21+
kotlin = "2.2.21"
2222
lazyJ = "0.11.0"
2323
lifecycle = "2.9.4"
2424
logbackAndroid = "3.0.0"

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/client/browsing/items/list/ItemListView.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ fun ItemListMenu(
414414
enabled = isFileControlsEnabled
415415
)
416416

417-
LabelledActiveDownloadsButton(
418-
loadedLibraryState = itemListViewModel,
417+
LabelledSearchButton(
418+
itemListViewModel = itemListViewModel,
419419
applicationNavigation = applicationNavigation,
420420
modifier = modifier,
421421
)
@@ -426,8 +426,8 @@ fun ItemListMenu(
426426
modifier = modifier,
427427
)
428428

429-
LabelledSearchButton(
430-
itemListViewModel = itemListViewModel,
429+
LabelledActiveDownloadsButton(
430+
loadedLibraryState = itemListViewModel,
431431
applicationNavigation = applicationNavigation,
432432
modifier = modifier,
433433
)

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/client/browsing/navigation/DestinationGraphNavigation.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class DestinationGraphNavigation(
7171
navController.navigate(LibraryScreen(libraryId))
7272
}.toPromise()
7373

74+
override fun viewFileDetails(libraryId: LibraryId, searchQuery: String, positionedFile: PositionedFile) = coroutineScope.launch {
75+
navController.navigate(SearchedFileDetailsScreen(libraryId, searchQuery, positionedFile))
76+
}.toPromise()
77+
7478
override fun viewFileDetails(libraryId: LibraryId, item: IItem?, positionedFile: PositionedFile) = coroutineScope.launch {
7579
navController.navigate(BrowsedFileDetailsScreen(libraryId, item, positionedFile))
7680
}.toPromise()

projectBlueWater/src/main/java/com/lasthopesoftware/bluewater/client/connection/session/initialization/LibrarySelectionNavigation.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class LibrarySelectionNavigation(
3636
override fun search(libraryId: LibraryId, filePropertyFilter: FileProperty): Promise<Unit> =
3737
selectConnection(libraryId) { inner.search(libraryId, filePropertyFilter) }
3838

39+
override fun viewFileDetails(libraryId: LibraryId, searchQuery: String, positionedFile: PositionedFile): Promise<Unit> =
40+
selectConnection(libraryId) { inner.viewFileDetails(libraryId, searchQuery, positionedFile) }
41+
3942
override fun viewFileDetails(libraryId: LibraryId, item: IItem?, positionedFile: PositionedFile): Promise<Unit> =
4043
selectConnection(libraryId) { inner.viewFileDetails(libraryId, item, positionedFile) }
4144

0 commit comments

Comments
 (0)