Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbf49cf0 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Prox's DelayableExecutor needs to be on the main thread

Since all prox events that trigger need to be triggered
on the main thread.

Test: manual
Fixes: 202398858
Change-Id: Id32733c4d1fa4229085796bae2192bd68df6591d
parent 8cda5315
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -18,8 +18,7 @@ package com.android.systemui.util.sensors;

import android.util.Log;

import androidx.annotation.NonNull;

import com.android.systemui.dagger.qualifiers.Main;
import com.android.systemui.statusbar.policy.DevicePostureController;
import com.android.systemui.util.concurrency.DelayableExecutor;
import com.android.systemui.util.concurrency.Execution;
@@ -42,9 +41,9 @@ class PostureDependentProximitySensor extends ProximitySensorImpl {
    PostureDependentProximitySensor(
            @PrimaryProxSensor ThresholdSensor[] postureToPrimaryProxSensorMap,
            @SecondaryProxSensor ThresholdSensor[] postureToSecondaryProxSensorMap,
            @NonNull DelayableExecutor delayableExecutor,
            @NonNull Execution execution,
            @NonNull DevicePostureController devicePostureController
            @Main DelayableExecutor delayableExecutor,
            Execution execution,
            DevicePostureController devicePostureController
    ) {
        super(
                postureToPrimaryProxSensorMap[0],