Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3038a8e2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Switch to main thread when execute update colors" into udc-qpr-dev am: 49ec7f6c

parents 95ae9166 49ec7f6c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ open class RegionSampler
@JvmOverloads
constructor(
    val sampledView: View,
    mainExecutor: Executor?,
    val mainExecutor: Executor?,
    val bgExecutor: Executor?,
    val regionSamplingEnabled: Boolean,
    val isLockscreen: Boolean = false,
@@ -166,7 +166,7 @@ constructor(
                        if (isLockscreen) WallpaperManager.FLAG_LOCK
                        else WallpaperManager.FLAG_SYSTEM
                    )
                onColorsChanged(sampledRegionWithOffset, initialSampling)
                mainExecutor?.execute { onColorsChanged(sampledRegionWithOffset, initialSampling) }
            }
        )
    }