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

Commit d8522b78 authored by Pragya Bajoria's avatar Pragya Bajoria
Browse files

Update the flag check for back gesture to include tablet filtering to reduce...

Update the flag check for back gesture to include tablet filtering to reduce the scope of desktop windowing logic.

Change-Id: I15edeceebfdc14569c1b98caf62c741b40049200
Bug: 346249587
Flag: EXEMPT (windowing is currently only limited to Tablet)
parent d655aa4d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ import androidx.annotation.VisibleForTesting;
import androidx.core.os.BuildCompat;
import androidx.window.embedding.RuleController;

import com.android.launcher3.DeviceProfile;
import com.android.launcher3.DropTarget.DragObject;
import com.android.launcher3.accessibility.LauncherAccessibilityDelegate;
import com.android.launcher3.allapps.ActivityAllAppsContainerView;
@@ -2783,7 +2784,8 @@ public class Launcher extends StatefulActivity<LauncherState>
    }

    private void updateDisallowBack() {
        if (BuildCompat.isAtLeastV() && Flags.enableDesktopWindowingMode()) {
        if (BuildCompat.isAtLeastV() && Flags.enableDesktopWindowingMode()
            && mDeviceProfile.isTablet) {
            // TODO(b/330183377) disable back in launcher when when we productionize
            return;
        }