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

Commit 49ec7f6c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Switch to main thread when execute update colors" into udc-qpr-dev

parents 49caf0e8 cdcebc54
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) }
            }
        )
    }