Skip to content

Commit

Permalink
Twelve: Don't crossfade
Browse files Browse the repository at this point in the history
My bad, that's just ugly

Also removed unused imports

Change-Id: I5a9b1a40f8907cfd83269ecbfba8d633b16b8c2e
  • Loading branch information
luca020400 committed Nov 16, 2024
1 parent 738f56a commit c3975f3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/org/lineageos/twelve/ext/ImageView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import coil3.ImageLoader
import coil3.imageLoader
import coil3.request.Disposable
import coil3.request.ImageRequest
import coil3.request.crossfade
import coil3.request.error
import coil3.request.placeholder
import coil3.request.target
Expand All @@ -21,7 +20,6 @@ inline fun ImageView.loadThumbnail(
imageLoader: ImageLoader = context.imageLoader,
@DrawableRes placeholder: Int? = null,
builder: ImageRequest.Builder.() -> Unit = {
crossfade(true)
placeholder?.let {
placeholder(it)
error(it)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ import androidx.lifecycle.repeatOnLifecycle
import androidx.navigation.fragment.findNavController
import androidx.navigation.ui.setupWithNavController
import androidx.recyclerview.widget.RecyclerView
import coil3.load
import coil3.request.crossfade
import coil3.request.placeholder
import com.google.android.material.appbar.MaterialToolbar
import com.google.android.material.card.MaterialCardView
import com.google.android.material.floatingactionbutton.FloatingActionButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ import androidx.lifecycle.repeatOnLifecycle
import androidx.navigation.fragment.findNavController
import androidx.navigation.ui.setupWithNavController
import androidx.recyclerview.widget.RecyclerView
import coil3.load
import coil3.request.crossfade
import coil3.request.placeholder
import com.google.android.material.appbar.MaterialToolbar
import com.google.android.material.progressindicator.LinearProgressIndicator
import kotlinx.coroutines.flow.collectLatest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import androidx.annotation.StringRes
import androidx.core.view.isVisible
import coil3.load
import coil3.request.ImageRequest
import coil3.request.crossfade
import coil3.request.error
import coil3.request.placeholder
import org.lineageos.twelve.R
Expand Down Expand Up @@ -84,7 +83,6 @@ class HorizontalListItem @JvmOverloads constructor(
data: Any?,
@DrawableRes placeholder: Int? = null,
builder: ImageRequest.Builder.() -> Unit = {
crossfade(true)
placeholder?.let {
placeholder(it)
error(it)
Expand Down

0 comments on commit c3975f3

Please sign in to comment.