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

Commit 3e89e410 authored by Kshitij's avatar Kshitij
Browse files

feat: Add flag to force-show workspace labels

parent 6cda0122
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -282,6 +282,8 @@ public class DeviceProfile {
    public int flingToDeleteThresholdVelocity;
    private final Context context;

    private final static boolean FORCE_SHOW_LABELS = false;

    /** TODO: Once we fully migrate to staged split, remove "isMultiWindowMode" */
    DeviceProfile(Context context, InvariantDeviceProfile inv, Info info, WindowBounds windowBounds,
                  SparseArray<DotRenderer> dotRendererCache, boolean isMultiWindowMode,
@@ -826,6 +828,7 @@ public class DeviceProfile {
     * It is important to call this method after the All Apps variables have been set.
     */
    private void hideWorkspaceLabelsIfNotEnoughSpace() {
        if (FORCE_SHOW_LABELS) return;
        float iconTextHeight = Utilities.calculateTextHeight(iconTextSizePx);
        float workspaceCellPaddingY = getCellSize().y - iconSizePx - iconDrawablePaddingPx
                - iconTextHeight;