Merge "Ensure onDarkIntensity is called on the proper thread." into qt-dev

am: caf6bc7683

Change-Id: I2da8ebfb22536c62600458d6847c3ee96a912cf9
This commit is contained in:
Matt Casey
2019-06-14 12:48:11 -07:00
committed by android-build-merger

View File

@@ -768,6 +768,10 @@ public class ScreenDecorations extends SystemUI implements Tunable,
@Override
public void onDarkIntensity(float darkIntensity) {
if (!mHandler.getLooper().isCurrentThread()) {
mHandler.post(() -> onDarkIntensity(darkIntensity));
return;
}
if (mOverlay != null) {
CornerHandleView assistHintTopLeft = mOverlay.findViewById(R.id.assist_hint_left);
CornerHandleView assistHintTopRight = mOverlay.findViewById(R.id.assist_hint_right);