Search in sources :

Example 1 with OverlayEdgeEffect

use of com.android.launcher3.util.OverlayEdgeEffect in project android_packages_apps_Launcher3 by crdroidandroid.

the class Workspace method setLauncherOverlay.

public void setLauncherOverlay(LauncherOverlay overlay) {
    mOverlayEdgeEffect = overlay == null ? null : new OverlayEdgeEffect(getContext(), overlay);
    EdgeEffectCompat newEffect = overlay == null ? new EdgeEffectCompat(getContext()) : mOverlayEdgeEffect;
    if (mIsRtl) {
        mEdgeGlowRight = newEffect;
    } else {
        mEdgeGlowLeft = newEffect;
    }
    onOverlayScrollChanged(0);
}
Also used : OverlayEdgeEffect(com.android.launcher3.util.OverlayEdgeEffect) EdgeEffectCompat(com.android.launcher3.util.EdgeEffectCompat)

Aggregations

EdgeEffectCompat (com.android.launcher3.util.EdgeEffectCompat)1 OverlayEdgeEffect (com.android.launcher3.util.OverlayEdgeEffect)1