Adding margin height for transient taskbar to allow users to stash taskbar from full height.

Test: visual(video in buganizer)
Fix: 263526574
Change-Id: I21fd1273b83a4e5efdf7aeacae1303513b9b4d97
This commit is contained in:
Jagrut Desai
2023-01-09 11:17:53 -06:00
parent d058f55578
commit 50f1e8dfc2

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);
}
/**