Loading src/com/android/launcher3/DeviceProfile.java +3 −0 Original line number Diff line number Diff line Loading @@ -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, Loading Loading @@ -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; Loading Loading
src/com/android/launcher3/DeviceProfile.java +3 −0 Original line number Diff line number Diff line Loading @@ -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, Loading Loading @@ -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; Loading