mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user