mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
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:
@@ -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