mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
UI fixes to All apps pull up work
b/28917826 - nav bar change to light when top of the all apps container passes y mid point of the status bar - apps search edit box change when top of the all apps passes the bottom of nav bar - Restrict pull up to work only if the ACTION_DOWN event started from the hotseat. - Landscape: reverted old padding and margin. Only the interaction is different. - Tuning of the motion spec - Animation duration respects fling speed more agressively. - and many more small bugs... Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349
This commit is contained in:
@@ -18,6 +18,10 @@ public class InsettableFrameLayout extends FrameLayout implements
|
||||
@ViewDebug.ExportedProperty(category = "launcher")
|
||||
protected Rect mInsets = new Rect();
|
||||
|
||||
public Rect getInsets() {
|
||||
return mInsets;
|
||||
}
|
||||
|
||||
public InsettableFrameLayout(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
setOnHierarchyChangeListener(this);
|
||||
@@ -34,9 +38,6 @@ public class InsettableFrameLayout extends FrameLayout implements
|
||||
lp.rightMargin += (newInsets.right - oldInsets.right);
|
||||
lp.bottomMargin += (newInsets.bottom - oldInsets.bottom);
|
||||
}
|
||||
if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP && child instanceof AllAppsContainerView) {
|
||||
lp.setMargins(0, 0, 0, lp.bottomMargin);
|
||||
}
|
||||
child.setLayoutParams(lp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user