mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Removing Launcher dependency in search box layout
Bug: 118758696 Change-Id: Id918c44b8bd2a97ab577481b7584afbe56e8a591
This commit is contained in:
@@ -208,13 +208,16 @@ public class AppsSearchContainerLayout extends ExtendedEditText
|
||||
MarginLayoutParams mlp = (MarginLayoutParams) getLayoutParams();
|
||||
mlp.topMargin = Math.round(Math.max(-mFixedTranslationY, insets.top - mMarginTopAdjusting));
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
DeviceProfile dp = mLauncher.getDeviceProfile();
|
||||
if (dp.isVerticalBarLayout()) {
|
||||
mLauncher.getAllAppsController().setScrollRangeDelta(0);
|
||||
@Override
|
||||
public float getScrollRangeDelta(Rect insets) {
|
||||
if (mLauncher.getDeviceProfile().isVerticalBarLayout()) {
|
||||
return 0;
|
||||
} else {
|
||||
mLauncher.getAllAppsController().setScrollRangeDelta(
|
||||
insets.bottom + mlp.topMargin + mFixedTranslationY);
|
||||
int topMargin = Math.round(Math.max(
|
||||
-mFixedTranslationY, insets.top - mMarginTopAdjusting));
|
||||
return insets.bottom + topMargin + mFixedTranslationY;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user