Fix restartGalleryProvider being called on start
This commit is contained in:
1 parent
c30c1b29ef
commit
0488c7ebf4
2 files changed
+4
-4
No files matched your search
@@ -836,6 +836,10 @@ class ReaderActivity : EhActivity() {
|
||||
.onEach { setGallery() }
|
||||
.launchIn(lifecycleScope)
|
||||
|
||||
ReaderPreferences.cropBorders().changes()
|
||||
.onEach { restartGalleryProvider() }
|
||||
.launchIn(lifecycleScope)
|
||||
|
||||
ReaderPreferences.readerTheme().changes()
|
||||
.onEach { theme ->
|
||||
binding.readerContainer.setBackgroundResource(
|
||||
|
||||
@@ -39,10 +39,6 @@ class ReaderColorFilterSettings @JvmOverloads constructor(context: Context, attr
|
||||
|
||||
context as ReaderActivity
|
||||
|
||||
readerPreferences.cropBorders().asHotFlow {
|
||||
context.restartGalleryProvider()
|
||||
}.launchIn(context.lifecycleScope)
|
||||
|
||||
if (isAtLeastO) {
|
||||
binding.wideColorGamut.isEnabled = Image.isWideColorGamut
|
||||
if (!Image.isWideColorGamut) {
|
||||
|
||||
Reference in new issue
Block a user