Fixes
This commit is contained in:
@@ -99,7 +99,7 @@ interface AppModule {
|
|||||||
@Provides
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
fun provideCoil(
|
fun provideCoil(
|
||||||
@ApplicationContext context: Context,
|
@LocalizedAppContext context: Context,
|
||||||
@MangaHttpClient okHttpClientProvider: Provider<OkHttpClient>,
|
@MangaHttpClient okHttpClientProvider: Provider<OkHttpClient>,
|
||||||
mangaRepositoryFactory: MangaRepository.Factory,
|
mangaRepositoryFactory: MangaRepository.Factory,
|
||||||
imageProxyInterceptor: ImageProxyInterceptor,
|
imageProxyInterceptor: ImageProxyInterceptor,
|
||||||
|
|||||||
@@ -569,7 +569,10 @@ class AppSettings @Inject constructor(@ApplicationContext context: Context) {
|
|||||||
|
|
||||||
fun getAllValues(): Map<String, *> = prefs.all
|
fun getAllValues(): Map<String, *> = prefs.all
|
||||||
|
|
||||||
fun upsertAll(m: Map<String, *>) = prefs.edit { putAll(m) }
|
fun upsertAll(m: Map<String, *>) = prefs.edit {
|
||||||
|
clear()
|
||||||
|
putAll(m)
|
||||||
|
}
|
||||||
|
|
||||||
private fun isBackgroundNetworkRestricted(): Boolean {
|
private fun isBackgroundNetworkRestricted(): Boolean {
|
||||||
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
|||||||
@@ -48,7 +48,10 @@ class TapGridSettings @Inject constructor(@ApplicationContext context: Context)
|
|||||||
|
|
||||||
fun getAllValues(): Map<String, *> = prefs.all
|
fun getAllValues(): Map<String, *> = prefs.all
|
||||||
|
|
||||||
fun upsertAll(m: Map<String, *>) = prefs.edit { putAll(m) }
|
fun upsertAll(m: Map<String, *>) = prefs.edit {
|
||||||
|
clear()
|
||||||
|
putAll(m)
|
||||||
|
}
|
||||||
|
|
||||||
private fun initPrefs(withDefaultValues: Boolean) {
|
private fun initPrefs(withDefaultValues: Boolean) {
|
||||||
prefs.edit {
|
prefs.edit {
|
||||||
|
|||||||
@@ -95,11 +95,14 @@ class MangaDirectoriesActivity : BaseActivity<ActivityMangaDirectoriesBinding>()
|
|||||||
leftMargin = topMargin + barsInsets.left
|
leftMargin = topMargin + barsInsets.left
|
||||||
bottomMargin = topMargin + barsInsets.bottom
|
bottomMargin = topMargin + barsInsets.bottom
|
||||||
}
|
}
|
||||||
viewBinding.root.updatePadding(
|
viewBinding.appbar.updatePadding(
|
||||||
left = barsInsets.left,
|
left = barsInsets.left,
|
||||||
right = barsInsets.right,
|
right = barsInsets.right,
|
||||||
|
top = barsInsets.top,
|
||||||
)
|
)
|
||||||
viewBinding.recyclerView.updatePadding(
|
viewBinding.recyclerView.updatePadding(
|
||||||
|
left = barsInsets.left,
|
||||||
|
right = barsInsets.right,
|
||||||
bottom = barsInsets.bottom,
|
bottom = barsInsets.bottom,
|
||||||
)
|
)
|
||||||
return insets.consumeAllSystemBarsInsets()
|
return insets.consumeAllSystemBarsInsets()
|
||||||
|
|||||||
Reference in New Issue
Block a user