mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Add taskbarIconSize to GridOption/DisplayOptions
- Renamed variables to make it more clear what they represent - DeviceProfile will be source of truth for taskbar sizes Bug: 265144213 Test: phone, multi-display, tablet Change-Id: Id9c19d15a65894fd7645e0f876a4b6527b713c34 Flag: ENABLE_TRANSIENT_TASKBAR=true
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
*/
|
||||
package com.android.launcher3.allapps;
|
||||
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_WORK_FAB_BUTTON_COLLAPSE;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_WORK_FAB_BUTTON_EXTEND;
|
||||
import static com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip.getTabWidth;
|
||||
|
||||
import android.animation.LayoutTransition;
|
||||
@@ -116,7 +114,7 @@ public class WorkModeSwitch extends LinearLayout implements Insettable,
|
||||
}
|
||||
|
||||
if (!dp.isGestureMode && dp.isTaskbarPresent) {
|
||||
bottomMargin += dp.taskbarSize;
|
||||
bottomMargin += dp.taskbarHeight;
|
||||
}
|
||||
|
||||
lp.bottomMargin = bottomMargin;
|
||||
|
||||
Reference in New Issue
Block a user