Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

fix(android): keep navigation labels; Material's fixed-height bar gains nothing from icon-only

debpalashdda7242468b6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a58d6e9ef..873a1a74f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,7 +14,7 @@ metadata and the backend fallback mirror it.
### Changed
-- iOS Home shows Electron's contributor avatars, Dub is redesigned around one source card with animated icons, and the bottom dock is icon-only
+- iOS Home shows Electron's contributor avatars, Dub is redesigned around one source card with animated icons, and the iOS bottom dock is icon-only
- Model licence review on iOS and Android opens with a plain summary, rights rows and licence links; the raw terms move under Exact terms
### Added
diff --git a/mobile/android/README.md b/mobile/android/README.md
index f96d593d9..36d7703b6 100644
--- a/mobile/android/README.md
+++ b/mobile/android/README.md
@@ -458,5 +458,5 @@ Desktop-only workspaces are not advertised as available mobile features.
Home shows Electron's contributor avatars (`HomeContributors.kt`; the Gradle catalog task copies the
images from `electron/.../home/contributors` into the APK assets, nothing is fetched at runtime and
`tests/test_mobile_contract.py` guards the list). Dub opens with a dashed source card and the animated
-`DubGlyph`; the bottom navigation is icon-only with names as content descriptions.
+`DubGlyph`. The Material navigation bar keeps its labels: its height is fixed, so removing them would not make it more compact.
diff --git a/mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt b/mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt
index a236eebd0..501026b5f 100644
--- a/mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt
+++ b/mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt
@@ -77,7 +77,7 @@ class MainActivity:ComponentActivity() {
val label=if(tab=="home") l.t("nav.home") else if(tab=="connect") l.t("mobile.tabs.connect") else l.t("mobile.tabs.$tab")
NavigationBarItem(selected=route==tab || (tab=="home" && (route=="speak" || route.startsWith("voice/") || route.startsWith("host-voice/") || route.startsWith("project"))),onClick={dismissKeyboard();nav.navigate(tab) {popUpTo(nav.graph.startDestinationId) {saveState=true};launchSingleTop=true;restoreState=tab!="home"}},
icon={Icon(when(tab) {"home" -> Icons.Default.Home;"speak" -> Icons.Default.PlayArrow;"voices" -> Icons.Default.Person;"dub" -> Icons.AutoMirrored.Filled.List;"dictate" -> Icons.Default.Edit;"connect" -> Icons.Default.Add;else -> Icons.Default.Settings},contentDescription=label)},
- label=null,alwaysShowLabel=false,
+ label=if(LocalDensity.current.fontScale<=1.5f) {{Text(label)}} else null,
colors=NavigationBarItemDefaults.colors(indicatorColor=role("messageSurface"),selectedIconColor=role("messageAction"),selectedTextColor=role("toolbarForeground"),unselectedIconColor=role("textMuted"),unselectedTextColor=role("textMuted")))
}
}