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

Commit 3afe6c47 authored by Darrell Shi's avatar Darrell Shi
Browse files

Disable dream touch handling on scene container

Custom touch handling on dreams is no longer needed when scene container
is enabled.

Bug: 365999124
Test: manual
Flag: com.android.systemui.scene_container
Change-Id: I4a69214a37819624403a728eafa72bf693e52a47
parent ba72d5ed
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ import com.android.systemui.dreams.dagger.DreamOverlayComponent;
import com.android.systemui.keyguard.domain.interactor.KeyguardInteractor;
import com.android.systemui.navigationbar.gestural.domain.GestureInteractor;
import com.android.systemui.navigationbar.gestural.domain.TaskMatcher;
import com.android.systemui.scene.shared.flag.SceneContainerFlag;
import com.android.systemui.shade.ShadeExpansionChangeEvent;
import com.android.systemui.touch.TouchInsetManager;
import com.android.systemui.util.concurrency.DelayableExecutor;
@@ -499,8 +500,11 @@ public class DreamOverlayService extends android.service.dreams.DreamOverlayServ

        mDreamOverlayContainerViewController =
                dreamOverlayComponent.getDreamOverlayContainerViewController();

        if (!SceneContainerFlag.isEnabled()) {
            mTouchMonitor = ambientTouchComponent.getTouchMonitor();
            mTouchMonitor.init();
        }

        mStateController.setShouldShowComplications(shouldShowComplications());