mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Pull up all apps interaction
First phase implementation: dragging and animation interaction is implemented namely in two classes. ScrollGestureDetector and AllAppsTransitionController. FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and not in the extending builds. This way, we can safely iterate without turning it on the shipped ready version. b/28917826 Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1
This commit is contained in:
@@ -9,6 +9,9 @@ import android.view.ViewDebug;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
import com.android.launcher3.allapps.AllAppsContainerView;
|
||||
import com.android.launcher3.config.FeatureFlags;
|
||||
|
||||
public class InsettableFrameLayout extends FrameLayout implements
|
||||
ViewGroup.OnHierarchyChangeListener, Insettable {
|
||||
|
||||
@@ -31,6 +34,9 @@ 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