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

Commit ce54d730 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: Remove adding extra space on hotseat

parent a296b1bd
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -34,8 +34,6 @@ import android.view.ViewDebug;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.android.launcher3.folder.Folder;
import com.android.launcher3.util.NavigationMode;
import com.android.launcher3.util.window.WindowManagerProxy;

import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
@@ -262,8 +260,6 @@ public class Hotseat extends CellLayout implements Insettable, OffsetParent {
    public void setInsets(Rect insets) {
        FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) getLayoutParams();
        DeviceProfile grid = mActivity.getDeviceProfile();
        WindowManagerProxy wm = WindowManagerProxy.INSTANCE.get(getContext());
        boolean isFullyGesture = wm.getNavigationMode(getContext()) == NavigationMode.NO_BUTTON;

        if (grid.isVerticalBarLayout()) {
            mQsb.setVisibility(View.GONE);
@@ -279,11 +275,7 @@ public class Hotseat extends CellLayout implements Insettable, OffsetParent {
            mQsb.setVisibility(View.VISIBLE);
            lp.gravity = Gravity.BOTTOM;
            lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
            if (isFullyGesture) {
            lp.height = grid.hotseatBarSizePx;
            } else {
                lp.height = grid.hotseatBarSizePx + 24;
            }
        }

        Rect padding = grid.getHotseatLayoutPadding(getContext());