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

Commit 709242e8 authored by Jagrut Desai's avatar Jagrut Desai
Browse files

Fix Taskbar Education Tooltip Bottom Margin

Test: Manual
Bug: 282990924
Flag: Not needed
Change-Id: I977e7fc84382b1c43612516c8d6f27610ad25a3f
parent 11939898
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ import com.android.launcher3.taskbar.BaseTaskbarContext;
import com.android.launcher3.taskbar.TaskbarActivityContext;
import com.android.launcher3.taskbar.TaskbarControllers;
import com.android.launcher3.taskbar.TaskbarDragController;
import com.android.launcher3.taskbar.TaskbarStashController;
import com.android.launcher3.taskbar.TaskbarUIController;
import com.android.launcher3.taskbar.allapps.TaskbarAllAppsContainerView;
import com.android.launcher3.util.SplitConfigurationOptions.SplitSelectSource;
@@ -45,8 +44,6 @@ public class TaskbarOverlayContext extends BaseTaskbarContext {
    private final TaskbarDragController mDragController;
    private final TaskbarOverlayDragLayer mDragLayer;

    // We automatically stash taskbar when All Apps is opened in gesture navigation mode.
    private final boolean mWillTaskbarBeVisuallyStashed;
    private final int mStashedTaskbarHeight;
    private final TaskbarUIController mUiController;

@@ -60,18 +57,11 @@ public class TaskbarOverlayContext extends BaseTaskbarContext {
        mDragController = new TaskbarDragController(this);
        mDragController.init(controllers);
        mDragLayer = new TaskbarOverlayDragLayer(this);

        TaskbarStashController taskbarStashController = controllers.taskbarStashController;
        mWillTaskbarBeVisuallyStashed = taskbarStashController.supportsVisualStashing();
        mStashedTaskbarHeight = taskbarStashController.getStashedHeight();
        mStashedTaskbarHeight = controllers.taskbarStashController.getStashedHeight();

        mUiController = controllers.uiController;
    }

    boolean willTaskbarBeVisuallyStashed() {
        return mWillTaskbarBeVisuallyStashed;
    }

    int getStashedTaskbarHeight() {
        return mStashedTaskbarHeight;
    }
+2 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import androidx.annotation.NonNull;
import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.testing.TestLogging;
import com.android.launcher3.testing.shared.TestProtocol;
import com.android.launcher3.util.DisplayController;
import com.android.launcher3.util.TouchController;
import com.android.launcher3.views.BaseDragLayer;

@@ -185,7 +186,7 @@ public class TaskbarOverlayDragLayer extends
     * 2) Sets tappableInsets bottom inset to 0.
     */
    private WindowInsets updateInsetsDueToStashing(WindowInsets oldInsets) {
        if (!mActivity.willTaskbarBeVisuallyStashed()) {
        if (!DisplayController.isTransientTaskbar(mActivity)) {
            return oldInsets;
        }
        WindowInsets.Builder updatedInsetsBuilder = new WindowInsets.Builder(oldInsets);