Change to Toolbar layout
This commit is contained in:
parent
7af9eb8acc
commit
db7d6d8ab8
25 changed files with 544 additions and 157 deletions
|
|
@ -4,7 +4,8 @@ import android.content.Context
|
|||
import android.content.SharedPreferences
|
||||
import androidx.room.Room
|
||||
import com.pixelized.biblib.database.BibLibDatabase
|
||||
import com.pixelized.biblib.utils.CoverCache
|
||||
import com.pixelized.biblib.utils.cache.BookCoverCache
|
||||
import com.pixelized.biblib.utils.cache.ImageCache
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
|
|
@ -31,10 +32,22 @@ class PersistenceModule {
|
|||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideBitmapCache(
|
||||
fun provideBookCoverCache(
|
||||
imageCache: ImageCache,
|
||||
): BookCoverCache {
|
||||
return BookCoverCache(
|
||||
cache = imageCache
|
||||
)
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideImageCache(
|
||||
@ApplicationContext context: Context,
|
||||
): CoverCache {
|
||||
return CoverCache(context)
|
||||
): ImageCache {
|
||||
return ImageCache(
|
||||
context = context
|
||||
)
|
||||
}
|
||||
|
||||
@Provides
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue