diff options
| author | 2023-07-12 23:45:01 +0000 | |
|---|---|---|
| committer | 2023-07-12 23:45:01 +0000 | |
| commit | 49ec7f6c0e77dc4d3efb8e8c8a35d77b4476e3cc (patch) | |
| tree | e0b352b4cc091a610f8a56d8a4b82c18f865a996 | |
| parent | 49caf0e8514daebfae0754d4fdd4b203b84a1391 (diff) | |
| parent | cdcebc54027497ddeb0c1298d63bda942323b5d9 (diff) | |
Merge "Switch to main thread when execute update colors" into udc-qpr-dev
| -rw-r--r-- | packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/RegionSampler.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/RegionSampler.kt b/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/RegionSampler.kt index 0fbeb1a054a7..f3296f0632bb 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/RegionSampler.kt +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/RegionSampler.kt @@ -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) } } ) } |