mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Bound overscroll shift amount to avoid content from drawing on top (Y-val)
of the QSB. Bug: 77538324 Change-Id: Idabc4365c5fe5cb1894fa0eb84ea9309b85f99a3
This commit is contained in:
@@ -47,6 +47,7 @@ import com.android.launcher3.InsettableFrameLayout;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
import com.android.launcher3.graphics.ColorScrim;
|
||||
import com.android.launcher3.keyboard.FocusedItemDecorator;
|
||||
@@ -124,6 +125,13 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
|
||||
return mAllAppsStore;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setDampedScrollShift(float shift) {
|
||||
// Bound the shift amount to avoid content from drawing on top (Y-val) of the QSB.
|
||||
float maxShift = getSearchView().getHeight() / 2f;
|
||||
super.setDampedScrollShift(Utilities.boundToRange(shift, -maxShift, maxShift));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDeviceProfileChanged(DeviceProfile dp) {
|
||||
for (AdapterHolder holder : mAH) {
|
||||
|
||||
Reference in New Issue
Block a user