mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Keep the followed channel's offer off the Tests list while browsing it (#3707)
* Show the followed channel's update offer above the test list only when following a test * Keep install progress and errors on the Tests list while following Stable or Preview
This commit is contained in:
1 parent
86b8ae3c99
commit
de3ed8b986
1 file changed
+2
-1
@@ -706,7 +706,8 @@ private fun TestList(tests: List<Release>, me: AppUpdates.Installed, u: UpdatesS
|
||||
val followed = u.follow.pr.takeIf { u.follow.channel == Channel.TEST }
|
||||
val rowShown = followed != null && (ready.any { it.pr == followed } || (oldShown && old.any { it.pr == followed }))
|
||||
Column(verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
if (!rowShown) status(false)
|
||||
// A followed test's row carries the status; browsing Tests while following Stable or Preview shows it only for an install running or failed.
|
||||
if (if (followed != null) !rowShown else u.stage != null || u.error != null) status(false)
|
||||
Column(Modifier.padding(start = 18.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||
if (tests.size > 5 || query.isNotEmpty()) AdbTextField(
|
||||
value = query, onValueChange = { query = it }, label = stringResource(R.string.upd_tests_find),
|
||||
|
||||
Reference in new issue
Block a user