mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Dispatch insets from overlay drag layer.
This simplifies insets handling for All Apps and EDU, and also fixes some edge cases with All Apps popup menus. KeyboardQuickSwitchView now needs to ignore insets since it has a hardcoded top margin, keyboard_quick_switch_margin_top. Fix: 276804708 Test: All Apps, EDU, and Quick Switch all have proper insets handling. Change-Id: I93237a057b4f9ae62f71a70c59a58f3c8401c102
This commit is contained in:
@@ -18,7 +18,6 @@ package com.android.launcher3.taskbar.allapps;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.WindowInsets;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.allapps.ActivityAllAppsContainerView;
|
||||
@@ -36,12 +35,6 @@ public class TaskbarAllAppsContainerView extends
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WindowInsets onApplyWindowInsets(WindowInsets insets) {
|
||||
setInsets(insets.getInsets(WindowInsets.Type.systemBars()).toRect());
|
||||
return super.onApplyWindowInsets(insets);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected View inflateSearchBox() {
|
||||
// Remove top padding of header, since we do not have any search
|
||||
|
||||
Reference in New Issue
Block a user