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

Commit f8da98a5 authored by Uwais Ashraf's avatar Uwais Ashraf
Browse files

Set taskbar heights to 0 when taskbar is not present.

Fix: 289769344
Test: DeviceProfileDumpTest
Change-Id: I53f8a629c8adc12feb1fdf9f5b40b4a680c97b78
Merged-In: I53f8a629c8adc12feb1fdf9f5b40b4a680c97b78
parent 4c053e5f
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)