From 62facda5d920f2c42cd3dab460d708929d875687 Mon Sep 17 00:00:00 2001 From: Seb3thehacker Date: Thu, 5 Nov 2026 17:17:30 -0800 Subject: [PATCH] Media apps keep their own name on the player, NewPipe and TIDAL included --- .../java/app/seb3thehacker/gearslip/car/MediaScreen.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/car/MediaScreen.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/car/MediaScreen.kt index e02bc8f..e1fdb7a 100644 --- a/gearslip/src/main/java/app/seb3thehacker/gearslip/car/MediaScreen.kt +++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/car/MediaScreen.kt @@ -117,7 +117,7 @@ fun MediaScreen(app: MediaApp, onExit: () -> Unit) { CarMedia.Rejection.NEEDS_NOTIFICATION_ACCESS -> Notice( stringResource(R.string.media_keeps_library, app.label), stringResource(R.string.media_needs_access), - action = stringResource(R.string.media_open_on_phone) to { + action = stringResource(R.string.allow_on_phone) to { val app = context.applicationContext runCatching { app.startActivity( @@ -260,14 +260,16 @@ fun MediaScreen(app: MediaApp, onExit: () -> Unit) { private fun AppIdentity(app: MediaApp, onExit: () -> Unit, modifier: Modifier = Modifier) { val icon = remember(app) { findEntry(app.component.flattenToString())?.icon } Row(modifier, verticalAlignment = Alignment.CenterVertically) { - GsIconButton(Icons.Filled.ArrowBack, stringResource(R.string.back), onExit, size = 44.dp) - Spacer(Modifier.width(14.dp)) + // The same back button as every other screen's header, in the same place. + GsIconButton(Icons.Filled.ArrowBack, stringResource(R.string.back), onExit) + Spacer(Modifier.width(12.dp)) icon?.let { Image(it, null, Modifier.size(26.dp).clip(RoundedCornerShape(7.dp))) Spacer(Modifier.width(10.dp)) } Text( - app.label.lowercase().replaceFirstChar { it.titlecase() }, + // As the app writes it: recasing turned NewPipe into "Newpipe" and TIDAL into "Tidal". + app.label, style = MaterialTheme.typography.titleMedium, color = MaterialTheme.colorScheme.onSurfaceVariant, maxLines = 1,