From c800c1e17478ac5c0da773bdf51494b99a379165 Mon Sep 17 00:00:00 2001 From: Ayaan Date: Tue, 23 Jun 2026 17:51:22 +0530 Subject: [PATCH] fix(library): show home icon in folder breadcrumbs when at root level --- .../presentation/components/subcomps/LibraryActionRow.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/theveloper/pixelplay/presentation/components/subcomps/LibraryActionRow.kt b/app/src/main/java/com/theveloper/pixelplay/presentation/components/subcomps/LibraryActionRow.kt index fd82b4fe9..fb04d8a3d 100644 --- a/app/src/main/java/com/theveloper/pixelplay/presentation/components/subcomps/LibraryActionRow.kt +++ b/app/src/main/java/com/theveloper/pixelplay/presentation/components/subcomps/LibraryActionRow.kt @@ -39,6 +39,7 @@ import androidx.compose.material.icons.rounded.Shuffle import androidx.compose.material.icons.rounded.FilterList import androidx.compose.material.icons.rounded.Cloud import androidx.compose.material.icons.rounded.Dataset +import androidx.compose.material.icons.rounded.Home import androidx.compose.material.icons.rounded.PhoneAndroid import androidx.compose.material3.ButtonDefaults import androidx.compose.material3.ExperimentalMaterial3Api @@ -451,7 +452,11 @@ fun Breadcrumbs( modifier = Modifier.size(36.dp), enabled = currentFolder != null ) { - Icon(Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = stringResource(R.string.common_back)) + val icon = if (currentFolder == null) Icons.Rounded.Home else Icons.AutoMirrored.Rounded.ArrowBack + Icon( + imageVector = icon, + contentDescription = stringResource(if (currentFolder == null) R.string.nav_bar_home else R.string.common_back) + ) } Spacer(Modifier.width(8.dp))