diff options
| author | 2019-06-14 19:16:44 +0000 | |
|---|---|---|
| committer | 2019-06-14 19:16:44 +0000 | |
| commit | caf6bc76834fdb0e0d20458b36b74dcff5ce802c (patch) | |
| tree | d342c48ddf4e8721671e38c35aaa6e2c5fe775d4 | |
| parent | 566f3521cd9b54eb3879fe9247d4b0d1fc346010 (diff) | |
| parent | 0f1babb7067a5ede7a6ca73c8404a1b6548dce86 (diff) | |
Merge "Ensure onDarkIntensity is called on the proper thread." into qt-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/ScreenDecorations.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java index eff705415957..73e57de3f915 100644 --- a/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java +++ b/packages/SystemUI/src/com/android/systemui/ScreenDecorations.java @@ -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); |