Search in sources :

Example 6 with TYPE_ALL

use of com.android.launcher3.AbstractFloatingView.TYPE_ALL in project android_packages_apps_Launcher3 by ProtonAOSP.

the class Launcher method startBinding.

/**
 * Refreshes the shortcuts shown on the workspace.
 *
 * Implementation of the method from LauncherModel.Callbacks.
 */
public void startBinding() {
    Object traceToken = TraceHelper.INSTANCE.beginSection("startBinding");
    // Floating panels (except the full widget sheet) are associated with individual icons. If
    // we are starting a fresh bind, close all such panels as all the icons are about
    // to go away.
    AbstractFloatingView.closeOpenViews(this, true, TYPE_ALL & ~TYPE_REBIND_SAFE);
    setWorkspaceLoading(true);
    // Clear the workspace because it's going to be rebound
    mDragController.cancelDrag();
    mWorkspace.clearDropTargets();
    mWorkspace.removeAllWorkspaceScreens();
    mAppWidgetHost.clearViews();
    if (mHotseat != null) {
        mHotseat.resetLayout(getDeviceProfile().isVerticalBarLayout());
    }
    TraceHelper.INSTANCE.endSection(traceToken);
}
Also used : DragObject(com.android.launcher3.DropTarget.DragObject)

Aggregations

DragObject (com.android.launcher3.DropTarget.DragObject)6