ui: float the offline indicator opposite the library FAB

Drop the strip above the tab bar, which kept the bottom of the library
busy, and go back to a floating tonal cloud-off button at the bottom
start, level with the FAB on the other side. Tapping it still leaves
offline mode, and the tab bar goes back to just tabs and the gear.
This commit is contained in:
austinried
2026-10-21 10:14:10 +00:00
parent b76328fc26
commit 3ffe38d988
3 changed files with 20 additions and 52 deletions
@@ -510,7 +510,7 @@ class LibraryScreenTest {
@Test
@Config(qualifiers = "de-rDE-w320dp-h640dp-xhdpi")
fun theOfflineStripExplainsTheModeAndGoesOnline() {
fun theOfflineIndicatorGoesOnline() {
var exited = false
composeRule.setContent {
SubtracksTheme {
@@ -533,11 +533,10 @@ class LibraryScreenTest {
}
composeRule.waitForIdle()
composeRule.onNodeWithText(composeRule.activity.getString(R.string.offline_mode_banner)).performClick()
assertTrue("the offline strip should leave offline mode", exited)
composeRule
.onNodeWithContentDescription(composeRule.activity.getString(R.string.navigation_tabs_settings))
.assertWidthIsEqualTo(40.dp)
.onNodeWithContentDescription(composeRule.activity.getString(R.string.offline_mode_status))
.performClick()
assertTrue("the offline indicator should leave offline mode", exited)
}
private fun tabBounds(tab: LibraryTab) =