Skip to content

Commit

Permalink
image getter added
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Jan 18, 2024
1 parent fd688f2 commit de587a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import ru.tech.imageresizershrinker.core.domain.model.ImageInfo
import java.util.Locale
import javax.inject.Inject

class AndroidImageGetter @Inject constructor(
internal class AndroidImageGetter @Inject constructor(
private val imageLoader: ImageLoader,
@ApplicationContext private val context: Context
) : ImageGetter<Bitmap, ExifInterface> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.exifinterface.media.ExifInterface
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import coil.ImageLoader
Expand Down Expand Up @@ -47,7 +48,7 @@ import javax.xml.parsers.DocumentBuilderFactory
class MainViewModel @Inject constructor(
getSettingsStateFlowUseCase: GetSettingsStateFlowUseCase,
val imageLoader: ImageLoader,
private val imageGetter: ImageGetter<Bitmap, *>,
private val imageGetter: ImageGetter<Bitmap, ExifInterface>,
private val fileController: FileController,
private val getSettingsStateUseCase: GetSettingsStateUseCase,
private val settingsRepository: SettingsRepository
Expand Down

0 comments on commit de587a5

Please sign in to comment.