Adding margin height for transient taskbar to allow users to stash taskbar from full height. am: 50f1e8dfc2

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20903089

Change-Id: I886944c8f9a8ad2083cd84f2cc29cf9c41497b75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jagrut Desai
2023-01-11 19:09:20 +00:00
committed by Automerger Merge Worker

View File

@@ -364,7 +364,12 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
* Returns the height that taskbar will be touchable.
*/
public int getTouchableHeight() {
return mIsStashed ? mStashedHeight : mUnstashedHeight;
int bottomMargin = 0;
if (DisplayController.isTransientTaskbar(mActivity)) {
bottomMargin = mActivity.getResources().getDimensionPixelSize(
R.dimen.transient_taskbar_margin);
}
return mIsStashed ? mStashedHeight : (mUnstashedHeight + bottomMargin);
}
/**