Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8dd54b27 authored by Uwais Ashraf's avatar Uwais Ashraf Committed by Automerger Merge Worker
Browse files

Merge "Set taskbar heights to 0 when taskbar is not present." into udc-qpr-dev am: d295e351

parents 1c76ccfd d295e351
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)