Skip to content

Commit

Permalink
Bump recycler view version (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiagr authored Jul 25, 2023
1 parent 619924e commit 1e3db07
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 83 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ project.ext {
auth: "com.google.android.gms:play-services-auth:20.4.0",
mediarouter: "androidx.mediarouter:mediarouter:1.3.1",
palette: "androidx.palette:palette:1.0.0",
recyclerview: "androidx.recyclerview:recyclerview:1.2.1",
recyclerview: "androidx.recyclerview:recyclerview:1.3.0",
swipeToRefresh: "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0",
design: "com.google.android.material:material:1.5.0",
cardview: "androidx.cardview:cardview:1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ class FolderAdapter(
holder.podcastThumbnail.setImageDrawable(null)
}
}
is FolderViewHolder -> {
holder.composeView.disposeComposition()
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.ViewCompositionStrategy
import androidx.compose.ui.unit.dp
import androidx.recyclerview.widget.RecyclerView
import au.com.shiftyjelly.pocketcasts.compose.AppTheme
Expand All @@ -29,12 +28,6 @@ class FolderViewHolder(
val onFolderClick: (Folder) -> Unit
) : RecyclerView.ViewHolder(composeView) {

init {
composeView.setViewCompositionStrategy(
ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed
)
}

fun bind(folder: Folder, podcasts: List<Podcast>, badgeType: Settings.BadgeType, podcastUuidToBadge: Map<String, Int>) {
val badgeCount = calculateFolderBadge(podcasts, badgeType, podcastUuidToBadge)

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 1e3db07

Please sign in to comment.