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

Commit d295e351 authored by Uwais Ashraf's avatar Uwais Ashraf Committed by Android (Google) Code Review
Browse files

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

parents 03d29305 f8da98a5
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)