mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Set taskbar heights to 0 when taskbar is not present.
Fix: 289769344 Test: DeviceProfileDumpTest Change-Id: I53f8a629c8adc12feb1fdf9f5b40b4a680c97b78 Merged-In: I53f8a629c8adc12feb1fdf9f5b40b4a680c97b78
This commit is contained in:
@@ -363,7 +363,10 @@ public class DeviceProfile {
|
||||
}
|
||||
|
||||
isTransientTaskbar = DisplayController.isTransientTaskbar(context);
|
||||
if (isTransientTaskbar) {
|
||||
if (!isTaskbarPresent) {
|
||||
taskbarIconSize = taskbarHeight = stashedTaskbarHeight = taskbarBottomMargin = 0;
|
||||
startAlignTaskbar = false;
|
||||
} else if (isTransientTaskbar) {
|
||||
float invTransientIconSizeDp = inv.transientTaskbarIconSize[mTypeIndex];
|
||||
taskbarIconSize = pxFromDp(invTransientIconSizeDp, mMetrics);
|
||||
taskbarHeight = Math.round((taskbarIconSize * ICON_VISIBLE_AREA_FACTOR)
|
||||
|
||||
Reference in New Issue
Block a user