Merge "Remove fling gesture related flags for PiP and Bubbles" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
68d69d636e
@@ -46,7 +46,6 @@ import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.os.Bundle;
|
||||
import android.os.SystemProperties;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
import android.view.Choreographer;
|
||||
@@ -108,12 +107,6 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
public class BubbleStackView extends FrameLayout
|
||||
implements ViewTreeObserver.OnComputeInternalInsetsListener {
|
||||
|
||||
// LINT.IfChange
|
||||
public static final boolean ENABLE_FLING_TO_DISMISS_BUBBLE =
|
||||
SystemProperties.getBoolean("persist.wm.debug.fling_to_dismiss_bubble", true);
|
||||
// LINT.ThenChange(com/android/launcher3/taskbar/bubbles/BubbleDismissController.java)
|
||||
|
||||
private static final String TAG = TAG_WITH_CLASS_NAME ? "BubbleStackView" : TAG_BUBBLES;
|
||||
|
||||
/** How far the flyout needs to be dragged before it's dismissed regardless of velocity. */
|
||||
|
||||
@@ -19,7 +19,6 @@ package com.android.wm.shell.bubbles.animation;
|
||||
import static android.view.View.LAYOUT_DIRECTION_RTL;
|
||||
|
||||
import static com.android.wm.shell.bubbles.BubblePositioner.NUM_VISIBLE_WHEN_RESTING;
|
||||
import static com.android.wm.shell.bubbles.BubbleStackView.ENABLE_FLING_TO_DISMISS_BUBBLE;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Path;
|
||||
@@ -355,7 +354,6 @@ public class ExpandedAnimationController
|
||||
mMagnetizedBubbleDraggingOut.setMagnetListener(listener);
|
||||
mMagnetizedBubbleDraggingOut.setHapticsEnabled(true);
|
||||
mMagnetizedBubbleDraggingOut.setFlingToTargetMinVelocity(FLING_TO_DISMISS_MIN_VELOCITY);
|
||||
mMagnetizedBubbleDraggingOut.setFlingToTargetEnabled(ENABLE_FLING_TO_DISMISS_BUBBLE);
|
||||
}
|
||||
|
||||
private void springBubbleTo(View bubble, float x, float y) {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
package com.android.wm.shell.bubbles.animation;
|
||||
|
||||
import static com.android.wm.shell.bubbles.BubblePositioner.NUM_VISIBLE_WHEN_RESTING;
|
||||
import static com.android.wm.shell.bubbles.BubbleStackView.ENABLE_FLING_TO_DISMISS_BUBBLE;
|
||||
|
||||
import android.content.ContentResolver;
|
||||
import android.content.res.Resources;
|
||||
@@ -1026,7 +1025,6 @@ public class StackAnimationController extends
|
||||
};
|
||||
mMagnetizedStack.setHapticsEnabled(true);
|
||||
mMagnetizedStack.setFlingToTargetMinVelocity(FLING_TO_DISMISS_MIN_VELOCITY);
|
||||
mMagnetizedStack.setFlingToTargetEnabled(ENABLE_FLING_TO_DISMISS_BUBBLE);
|
||||
}
|
||||
|
||||
final ContentResolver contentResolver = mLayout.getContext().getContentResolver();
|
||||
|
||||
@@ -33,7 +33,6 @@ import android.content.Context;
|
||||
import android.graphics.PointF;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Debug;
|
||||
import android.os.SystemProperties;
|
||||
|
||||
import com.android.internal.protolog.common.ProtoLog;
|
||||
import com.android.wm.shell.R;
|
||||
@@ -48,19 +47,16 @@ import com.android.wm.shell.pip.PipTaskOrganizer;
|
||||
import com.android.wm.shell.pip.PipTransitionController;
|
||||
import com.android.wm.shell.protolog.ShellProtoLogGroup;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* A helper to animate and manipulate the PiP.
|
||||
*/
|
||||
public class PipMotionHelper implements PipAppOpsListener.Callback,
|
||||
FloatingContentCoordinator.FloatingContent {
|
||||
|
||||
public static final boolean ENABLE_FLING_TO_DISMISS_PIP =
|
||||
SystemProperties.getBoolean("persist.wm.debug.fling_to_dismiss_pip", false);
|
||||
private static final String TAG = "PipMotionHelper";
|
||||
private static final boolean DEBUG = false;
|
||||
|
||||
@@ -707,7 +703,7 @@ public class PipMotionHelper implements PipAppOpsListener.Callback,
|
||||
loc[1] = animatedPipBounds.top;
|
||||
}
|
||||
};
|
||||
mMagnetizedPip.setFlingToTargetEnabled(ENABLE_FLING_TO_DISMISS_PIP);
|
||||
mMagnetizedPip.setFlingToTargetEnabled(false);
|
||||
}
|
||||
|
||||
return mMagnetizedPip;
|
||||
|
||||
@@ -506,16 +506,6 @@ object Flags {
|
||||
val WM_CAPTION_ON_SHELL =
|
||||
sysPropBooleanFlag("persist.wm.debug.caption_on_shell", default = true)
|
||||
|
||||
@Keep
|
||||
@JvmField
|
||||
val ENABLE_FLING_TO_DISMISS_BUBBLE =
|
||||
sysPropBooleanFlag("persist.wm.debug.fling_to_dismiss_bubble", default = true)
|
||||
|
||||
@Keep
|
||||
@JvmField
|
||||
val ENABLE_FLING_TO_DISMISS_PIP =
|
||||
sysPropBooleanFlag("persist.wm.debug.fling_to_dismiss_pip", default = true)
|
||||
|
||||
// TODO(b/256873975): Tracking Bug
|
||||
@JvmField
|
||||
@Keep
|
||||
|
||||
Reference in New Issue
Block a user