diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 4e635a7643..f3630c187b 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -2063,7 +2063,6 @@ public abstract class AbsSwipeUpHandler, if (handleTaskAppeared(appearedTaskTargets)) { mRecentsAnimationController.finish(false /* toRecents */, null /* onFinishComplete */); - mActivityInterface.onLaunchTaskSuccess(); ActiveGestureLog.INSTANCE.addLog( /* event= */ "finishRecentsAnimation", /* extras= */ false, diff --git a/quickstep/src/com/android/quickstep/BaseActivityInterface.java b/quickstep/src/com/android/quickstep/BaseActivityInterface.java index 315a91e0a1..226b173ecd 100644 --- a/quickstep/src/com/android/quickstep/BaseActivityInterface.java +++ b/quickstep/src/com/android/quickstep/BaseActivityInterface.java @@ -183,14 +183,6 @@ public abstract class BaseActivityInterface 0 && tabsHeight != 0) { - mHeaderPaint.setAlpha((int) (getAlpha() * mTabsProtectionAlpha)); + if (DEBUG_HEADER_PROTECTION) { + mHeaderPaint.setColor(Color.BLUE); + mHeaderPaint.setAlpha(255); + } else { + mHeaderPaint.setAlpha((int) (getAlpha() * mTabsProtectionAlpha)); + } canvas.drawRect(0, bottom, canvas.getWidth(), bottom + tabsHeight, mHeaderPaint); } } diff --git a/src/com/android/launcher3/allapps/FloatingHeaderView.java b/src/com/android/launcher3/allapps/FloatingHeaderView.java index 1ef54984ef..1cbb0f9481 100644 --- a/src/com/android/launcher3/allapps/FloatingHeaderView.java +++ b/src/com/android/launcher3/allapps/FloatingHeaderView.java @@ -277,7 +277,7 @@ public class FloatingHeaderView extends LinearLayout implements } } - public int getMaxTranslation() { + int getMaxTranslation() { if (mMaxTranslation == 0 && (mTabsHidden || mFloatingRowsCollapsed)) { return getResources().getDimensionPixelSize(R.dimen.all_apps_search_bar_bottom_padding); } else if (mMaxTranslation > 0 && mTabsHidden) { @@ -334,7 +334,8 @@ public class FloatingHeaderView extends LinearLayout implements int clipTop = getPaddingTop() - mTabsAdditionalPaddingTop; if (mTabsHidden) { - clipTop += getPaddingBottom() - mTabsAdditionalPaddingBottom; + // Add back spacing that is otherwise covered by the tabs. + clipTop += mTabsAdditionalPaddingTop; } mRVClip.top = mTabsHidden || mFloatingRowsCollapsed ? clipTop : 0; mHeaderClip.top = clipTop; @@ -405,6 +406,10 @@ public class FloatingHeaderView extends LinearLayout implements return mFloatingRowsHeight; } + int getTabsAdditionalPaddingTop() { + return mTabsAdditionalPaddingTop; + } + int getTabsAdditionalPaddingBottom() { return mTabsAdditionalPaddingBottom; } @@ -473,7 +478,7 @@ public class FloatingHeaderView extends LinearLayout implements /** * Returns visible height of FloatingHeaderView contents requiring header protection */ - public int getPeripheralProtectionHeight() { + int getPeripheralProtectionHeight() { if (!mHeaderProtectionSupported) { return 0; }