Merge "[DO NOT MERGE] Update QuickStepContract.getWindowCornerRadius API" into sc-v2-dev
This commit is contained in:
@@ -676,7 +676,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
|||||||
? Math.max(crop.width(), crop.height()) / 2f
|
? Math.max(crop.width(), crop.height()) / 2f
|
||||||
: 0f;
|
: 0f;
|
||||||
final float finalWindowRadius = mDeviceProfile.isMultiWindowMode
|
final float finalWindowRadius = mDeviceProfile.isMultiWindowMode
|
||||||
? 0 : getWindowCornerRadius(mLauncher.getResources());
|
? 0 : getWindowCornerRadius(mLauncher);
|
||||||
final float finalShadowRadius = appTargetsAreTranslucent ? 0 : mMaxShadowRadius;
|
final float finalShadowRadius = appTargetsAreTranslucent ? 0 : mMaxShadowRadius;
|
||||||
|
|
||||||
MultiValueUpdateListener listener = new MultiValueUpdateListener() {
|
MultiValueUpdateListener listener = new MultiValueUpdateListener() {
|
||||||
@@ -867,7 +867,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
final float finalWindowRadius = mDeviceProfile.isMultiWindowMode
|
final float finalWindowRadius = mDeviceProfile.isMultiWindowMode
|
||||||
? 0 : getWindowCornerRadius(mLauncher.getResources());
|
? 0 : getWindowCornerRadius(mLauncher);
|
||||||
final FloatingWidgetView floatingView = FloatingWidgetView.getFloatingWidgetView(mLauncher,
|
final FloatingWidgetView floatingView = FloatingWidgetView.getFloatingWidgetView(mLauncher,
|
||||||
v, widgetBackgroundBounds,
|
v, widgetBackgroundBounds,
|
||||||
new Size(windowTargetBounds.width(), windowTargetBounds.height()),
|
new Size(windowTargetBounds.width(), windowTargetBounds.height()),
|
||||||
@@ -1149,7 +1149,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
|||||||
ValueAnimator unlockAnimator = ValueAnimator.ofFloat(0, 1);
|
ValueAnimator unlockAnimator = ValueAnimator.ofFloat(0, 1);
|
||||||
unlockAnimator.setDuration(CLOSING_TRANSITION_DURATION_MS);
|
unlockAnimator.setDuration(CLOSING_TRANSITION_DURATION_MS);
|
||||||
float cornerRadius = mDeviceProfile.isMultiWindowMode ? 0 :
|
float cornerRadius = mDeviceProfile.isMultiWindowMode ? 0 :
|
||||||
QuickStepContract.getWindowCornerRadius(mLauncher.getResources());
|
QuickStepContract.getWindowCornerRadius(mLauncher);
|
||||||
unlockAnimator.addListener(new AnimatorListenerAdapter() {
|
unlockAnimator.addListener(new AnimatorListenerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void onAnimationStart(Animator animation) {
|
public void onAnimationStart(Animator animation) {
|
||||||
@@ -1191,7 +1191,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
|||||||
ValueAnimator closingAnimator = ValueAnimator.ofFloat(0, 1);
|
ValueAnimator closingAnimator = ValueAnimator.ofFloat(0, 1);
|
||||||
int duration = CLOSING_TRANSITION_DURATION_MS;
|
int duration = CLOSING_TRANSITION_DURATION_MS;
|
||||||
float windowCornerRadius = mDeviceProfile.isMultiWindowMode
|
float windowCornerRadius = mDeviceProfile.isMultiWindowMode
|
||||||
? 0 : getWindowCornerRadius(mLauncher.getResources());
|
? 0 : getWindowCornerRadius(mLauncher);
|
||||||
float startShadowRadius = areAllTargetsTranslucent(appTargets) ? 0 : mMaxShadowRadius;
|
float startShadowRadius = areAllTargetsTranslucent(appTargets) ? 0 : mMaxShadowRadius;
|
||||||
closingAnimator.setDuration(duration);
|
closingAnimator.setDuration(duration);
|
||||||
closingAnimator.addUpdateListener(new MultiValueUpdateListener() {
|
closingAnimator.addUpdateListener(new MultiValueUpdateListener() {
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ public class RotationTouchHelper implements
|
|||||||
mDisplayId = DEFAULT_DISPLAY;
|
mDisplayId = DEFAULT_DISPLAY;
|
||||||
|
|
||||||
mOrientationTouchTransformer = new OrientationTouchTransformer(resources, mMode,
|
mOrientationTouchTransformer = new OrientationTouchTransformer(resources, mMode,
|
||||||
() -> QuickStepContract.getWindowCornerRadius(resources));
|
() -> QuickStepContract.getWindowCornerRadius(mContext));
|
||||||
|
|
||||||
// Register for navigation mode changes
|
// Register for navigation mode changes
|
||||||
SysUINavigationMode.Mode newMode = mSysUiNavMode.addModeChangeListener(this);
|
SysUINavigationMode.Mode newMode = mSysUiNavMode.addModeChangeListener(this);
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ public class NavBarGestureHandler implements OnTouchListener,
|
|||||||
mAssistantGestureDetector = new GestureDetector(context, new AssistantGestureListener());
|
mAssistantGestureDetector = new GestureDetector(context, new AssistantGestureListener());
|
||||||
int assistantWidth = resources.getDimensionPixelSize(R.dimen.gestures_assistant_width);
|
int assistantWidth = resources.getDimensionPixelSize(R.dimen.gestures_assistant_width);
|
||||||
final float assistantHeight = Math.max(mBottomGestureHeight,
|
final float assistantHeight = Math.max(mBottomGestureHeight,
|
||||||
QuickStepContract.getWindowCornerRadius(resources));
|
QuickStepContract.getWindowCornerRadius(context));
|
||||||
mAssistantLeftRegion.bottom = mAssistantRightRegion.bottom = mDisplaySize.y;
|
mAssistantLeftRegion.bottom = mAssistantRightRegion.bottom = mDisplaySize.y;
|
||||||
mAssistantLeftRegion.top = mAssistantRightRegion.top = mDisplaySize.y - assistantHeight;
|
mAssistantLeftRegion.top = mAssistantRightRegion.top = mDisplaySize.y - assistantHeight;
|
||||||
mAssistantLeftRegion.left = 0;
|
mAssistantLeftRegion.left = 0;
|
||||||
|
|||||||
@@ -1541,7 +1541,7 @@ public class TaskView extends FrameLayout implements Reusable {
|
|||||||
|
|
||||||
public FullscreenDrawParams(Context context) {
|
public FullscreenDrawParams(Context context) {
|
||||||
mCornerRadius = TaskCornerRadius.get(context);
|
mCornerRadius = TaskCornerRadius.get(context);
|
||||||
mWindowCornerRadius = QuickStepContract.getWindowCornerRadius(context.getResources());
|
mWindowCornerRadius = QuickStepContract.getWindowCornerRadius(context);
|
||||||
|
|
||||||
mCurrentDrawnCornerRadius = mCornerRadius;
|
mCurrentDrawnCornerRadius = mCornerRadius;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user