From f3dd2a07836a45c235cc5a0bfb97c720c2b5df76 Mon Sep 17 00:00:00 2001 From: Barnabas Balogh Date: Thu, 19 Feb 2026 11:03:41 +0100 Subject: [PATCH] feat: remove quick play button from the ContinueWatchingCard on Homepage --- .../bbara/purefin/app/home/ui/HomeSections.kt | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt b/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt index 03368c6..045dc26 100644 --- a/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt +++ b/app/src/main/java/hu/bbara/purefin/app/home/ui/HomeSections.kt @@ -1,6 +1,5 @@ package hu.bbara.purefin.app.home.ui -import android.content.Intent import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.clickable @@ -13,18 +12,11 @@ import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding -import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items -import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape -import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.outlined.PlayArrow -import androidx.compose.material3.Icon -import androidx.compose.material3.IconButton -import androidx.compose.material3.IconButtonColors import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable @@ -42,7 +34,6 @@ import coil3.request.ImageRequest import hu.bbara.purefin.common.ui.PosterCard import hu.bbara.purefin.common.ui.components.MediaProgressBar import hu.bbara.purefin.common.ui.components.PurefinAsyncImage -import hu.bbara.purefin.player.PlayerActivity import org.jellyfin.sdk.model.UUID import org.jellyfin.sdk.model.api.BaseItemKind import kotlin.math.nextUp @@ -142,31 +133,6 @@ fun ContinueWatchingCard( modifier = Modifier .align(Alignment.BottomStart) ) - IconButton( - modifier = Modifier - .align(Alignment.BottomEnd) - .padding(end = 8.dp, bottom = 16.dp) - .clip(CircleShape) - .background(scheme.secondary) - .size(36.dp), - onClick = { - val intent = Intent(context, PlayerActivity::class.java) - intent.putExtra("MEDIA_ID", item.id.toString()) - context.startActivity(intent) - }, - colors = IconButtonColors( - containerColor = scheme.secondary, - contentColor = scheme.onSecondary, - disabledContainerColor = scheme.secondary, - disabledContentColor = scheme.onSecondary - ) - ) { - Icon( - imageVector = Icons.Outlined.PlayArrow, - contentDescription = "Play", - modifier = Modifier.size(28.dp), - ) - } } Column(modifier = Modifier.padding(top = 12.dp)) { Text(