Skip to content

Commit

Permalink
Suppress ComposeCompositionLocalUsage lint for LocalImageRegionDecode…
Browse files Browse the repository at this point in the history
…rFactory
  • Loading branch information
saket committed Apr 10, 2024
1 parent cdac525 commit 71b9617
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.saket.telephoto.subsamplingimage.internal

import android.annotation.SuppressLint
import android.content.Context
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.ImageBitmap
Expand Down Expand Up @@ -33,4 +34,5 @@ internal interface ImageRegionDecoder {
}

// Used for overriding the decoder in screenshot tests.
@SuppressLint("ComposeCompositionLocalUsage")
internal val LocalImageRegionDecoderFactory = staticCompositionLocalOf { AndroidImageRegionDecoder.Factory }

0 comments on commit 71b9617

Please sign in to comment.