Search in sources :

Example 1 with LauncherOverlay

use of com.android.launcher3.Launcher.LauncherOverlay 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)

Example 2 with LauncherOverlay

use of com.android.launcher3.Launcher.LauncherOverlay in project android_packages_apps_Launcher3 by ArrowOS.

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)

Example 3 with LauncherOverlay

use of com.android.launcher3.Launcher.LauncherOverlay in project android_packages_apps_Launcher3 by ProtonAOSP.

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)

Example 4 with LauncherOverlay

use of com.android.launcher3.Launcher.LauncherOverlay in project android_packages_apps_Launcher3 by AOSPA.

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)

Example 5 with LauncherOverlay

use of com.android.launcher3.Launcher.LauncherOverlay in project android_packages_apps_404Launcher by P-404.

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)5 OverlayEdgeEffect (com.android.launcher3.util.OverlayEdgeEffect)5