Merge "Clean up fully rolled out flag enable_handle_delayed_gesture_callbacks" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
34fcfddaa2
@@ -223,16 +223,6 @@ flag {
|
||||
bug: "323886237"
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "enable_handle_delayed_gesture_callbacks"
|
||||
namespace: "launcher"
|
||||
description: "Enables additional handling for delayed mid-gesture callbacks"
|
||||
bug: "285636175"
|
||||
metadata {
|
||||
purpose: PURPOSE_BUGFIX
|
||||
}
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "enable_fallback_overview_in_window"
|
||||
namespace: "lse_desktop_experience"
|
||||
|
||||
@@ -17,7 +17,6 @@ package com.android.quickstep;
|
||||
|
||||
import static android.app.WindowConfiguration.ACTIVITY_TYPE_HOME;
|
||||
|
||||
import static com.android.launcher3.Flags.enableHandleDelayedGestureCallbacks;
|
||||
import static com.android.launcher3.Flags.enableScalingRevealHomeAnimation;
|
||||
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
|
||||
import static com.android.launcher3.util.NavigationMode.NO_BUTTON;
|
||||
@@ -184,7 +183,7 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
@Override
|
||||
public void onRecentsAnimationStart(RecentsAnimationController controller,
|
||||
RecentsAnimationTargets targets, @Nullable TransitionInfo transitionInfo) {
|
||||
if (enableHandleDelayedGestureCallbacks() && mRecentsAnimationStartPending) {
|
||||
if (mRecentsAnimationStartPending) {
|
||||
ActiveGestureProtoLogProxy.logStartRecentsAnimationCallback(
|
||||
"onRecentsAnimationStart");
|
||||
mRecentsAnimationStartPending = false;
|
||||
@@ -229,7 +228,7 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
|
||||
@Override
|
||||
public void onRecentsAnimationCanceled(HashMap<Integer, ThumbnailData> thumbnailDatas) {
|
||||
if (enableHandleDelayedGestureCallbacks() && mRecentsAnimationStartPending) {
|
||||
if (mRecentsAnimationStartPending) {
|
||||
ActiveGestureProtoLogProxy.logStartRecentsAnimationCallback(
|
||||
"onRecentsAnimationCanceled");
|
||||
mRecentsAnimationStartPending = false;
|
||||
@@ -239,7 +238,7 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
|
||||
@Override
|
||||
public void onRecentsAnimationFinished(RecentsAnimationController controller) {
|
||||
if (enableHandleDelayedGestureCallbacks() && mRecentsAnimationStartPending) {
|
||||
if (mRecentsAnimationStartPending) {
|
||||
ActiveGestureProtoLogProxy.logStartRecentsAnimationCallback(
|
||||
"onRecentsAnimationFinished");
|
||||
mRecentsAnimationStartPending = false;
|
||||
@@ -350,11 +349,8 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
mRecentsAnimationStartPending = getSystemUiProxy().startRecentsActivity(intent,
|
||||
options, mCallbacks, false /* useSyntheticRecentsTransition */);
|
||||
}
|
||||
|
||||
if (enableHandleDelayedGestureCallbacks()) {
|
||||
ActiveGestureProtoLogProxy.logSettingRecentsAnimationStartPending(
|
||||
mRecentsAnimationStartPending);
|
||||
}
|
||||
ActiveGestureProtoLogProxy.logSettingRecentsAnimationStartPending(
|
||||
mRecentsAnimationStartPending);
|
||||
gestureState.setState(STATE_RECENTS_ANIMATION_INITIALIZED);
|
||||
return mCallbacks;
|
||||
}
|
||||
@@ -549,10 +545,8 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
|
||||
pw.println(prefix + "TaskAnimationManager:");
|
||||
pw.println(prefix + "\tmDisplayId=" + mDisplayId);
|
||||
|
||||
if (enableHandleDelayedGestureCallbacks()) {
|
||||
pw.println(prefix + "\tmRecentsAnimationStartPending=" + mRecentsAnimationStartPending);
|
||||
pw.println(prefix + "\tmShouldIgnoreUpcomingGestures=" + mShouldIgnoreMotionEvents);
|
||||
}
|
||||
pw.println(prefix + "\tmRecentsAnimationStartPending=" + mRecentsAnimationStartPending);
|
||||
pw.println(prefix + "\tmShouldIgnoreUpcomingGestures=" + mShouldIgnoreMotionEvents);
|
||||
if (mController != null) {
|
||||
mController.dump(prefix + '\t', pw);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@ import static android.view.MotionEvent.ACTION_POINTER_UP;
|
||||
import static android.view.MotionEvent.ACTION_UP;
|
||||
|
||||
import static com.android.launcher3.Flags.enableCursorHoverStates;
|
||||
import static com.android.launcher3.Flags.enableHandleDelayedGestureCallbacks;
|
||||
import static com.android.launcher3.Flags.enableOverviewOnConnectedDisplays;
|
||||
import static com.android.launcher3.LauncherPrefs.backedUpItem;
|
||||
import static com.android.launcher3.MotionEventsUtils.isTrackpadMotionEvent;
|
||||
@@ -940,16 +939,14 @@ public class TouchInteractionService extends Service {
|
||||
ActiveGestureProtoLogProxy.logOnTaskAnimationManagerNotAvailable(displayId);
|
||||
return;
|
||||
}
|
||||
if (enableHandleDelayedGestureCallbacks()) {
|
||||
if (action == ACTION_DOWN || isHoverActionWithoutConsumer) {
|
||||
taskAnimationManager.notifyNewGestureStart();
|
||||
}
|
||||
if (taskAnimationManager.shouldIgnoreMotionEvents()) {
|
||||
if (action == ACTION_DOWN || isHoverActionWithoutConsumer) {
|
||||
taskAnimationManager.notifyNewGestureStart();
|
||||
}
|
||||
if (taskAnimationManager.shouldIgnoreMotionEvents()) {
|
||||
if (action == ACTION_DOWN || isHoverActionWithoutConsumer) {
|
||||
ActiveGestureProtoLogProxy.logOnInputIgnoringFollowingEvents(displayId);
|
||||
}
|
||||
return;
|
||||
ActiveGestureProtoLogProxy.logOnInputIgnoringFollowingEvents(displayId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
InputMonitorCompat inputMonitorCompat = getInputMonitorCompat(displayId);
|
||||
|
||||
Reference in New Issue
Block a user