Merge "Fix ConcurrentModificationException when addTunable"

This commit is contained in:
Shawn Lin
2022-01-13 00:24:11 +00:00
committed by Android (Google) Code Review

View File

@@ -342,7 +342,7 @@ public class ScreenDecorations extends CoreStartable implements Tunable {
mDisplayManager.getDisplay(DEFAULT_DISPLAY).getMetrics(metrics);
mDensity = metrics.density;
mExecutor.execute(() -> mTunerService.addTunable(this, SIZE));
mMainExecutor.execute(() -> mTunerService.addTunable(this, SIZE));
// Watch color inversion and invert the overlay as needed.
if (mColorInversionSetting == null) {