Merge "Adds fling gesture suppression to Launcher" into rvc-dev

This commit is contained in:
Govinda Wasserman authored and Android (Google) Code Review committed 2020-03-16 12:12:56 +00:00
commit 64673b033b
3 files changed
+26 -6

No files matched your search

@@ -22,6 +22,7 @@ import static android.content.Intent.ACTION_PACKAGE_REMOVED;
import static com.android.launcher3.util.PackageManagerHelper.getPackageFilter;
import static com.android.systemui.shared.system.PackageManagerWrapper.ACTION_PREFERRED_ACTIVITY_CHANGED;
import static com.android.systemui.shared.system.QuickStepContract.SYSUI_STATE_ASSIST_GESTURE_CONSTRAINED;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
@@ -104,6 +105,10 @@ public final class OverviewComponentObserver {
updateOverviewTargets();
}
public boolean assistantGestureIsConstrained() {
return (mDeviceState.getSystemUiStateFlags() & SYSUI_STATE_ASSIST_GESTURE_CONSTRAINED) != 0;
}
/**
* Update overview intent and {@link BaseActivityInterface} based off the current launcher home
* component.