Ensure onDarkIntensity is called on the proper thread.
Bug: 135064217 Test: Verified thread behavior via logging. Change-Id: Ib1a6dcacb22dc2eeabc49c6a7568ca248ae79cdf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user