Search in sources :

Example 1 with CLEAR_ALL_BUTTON

use of com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CLEAR_ALL_BUTTON in project android_packages_apps_Launcher3 by crdroidandroid.

the class LauncherRecentsView method setOverviewStateEnabled.

@Override
public void setOverviewStateEnabled(boolean enabled) {
    super.setOverviewStateEnabled(enabled);
    if (enabled) {
        LauncherState state = mActivity.getStateManager().getState();
        boolean hasClearAllButton = (state.getVisibleElements(mActivity) & CLEAR_ALL_BUTTON) != 0;
        setDisallowScrollToClearAll(!hasClearAllButton);
    }
}
Also used : LauncherState(com.android.launcher3.LauncherState)

Example 2 with CLEAR_ALL_BUTTON

use of com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CLEAR_ALL_BUTTON in project android_packages_apps_Launcher3 by AOSPA.

the class LauncherRecentsView method setOverviewStateEnabled.

@Override
public void setOverviewStateEnabled(boolean enabled) {
    super.setOverviewStateEnabled(enabled);
    if (enabled) {
        LauncherState state = mActivity.getStateManager().getState();
        boolean hasClearAllButton = (state.getVisibleElements(mActivity) & CLEAR_ALL_BUTTON) != 0;
        setDisallowScrollToClearAll(!hasClearAllButton);
    }
}
Also used : LauncherState(com.android.launcher3.LauncherState)

Example 3 with CLEAR_ALL_BUTTON

use of com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CLEAR_ALL_BUTTON in project android_packages_apps_Launcher3 by ArrowOS.

the class LauncherRecentsView method setOverviewStateEnabled.

@Override
public void setOverviewStateEnabled(boolean enabled) {
    super.setOverviewStateEnabled(enabled);
    if (enabled) {
        LauncherState state = mActivity.getStateManager().getState();
        boolean hasClearAllButton = (state.getVisibleElements(mActivity) & CLEAR_ALL_BUTTON) != 0;
        setDisallowScrollToClearAll(!hasClearAllButton);
    }
}
Also used : LauncherState(com.android.launcher3.LauncherState)

Example 4 with CLEAR_ALL_BUTTON

use of com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CLEAR_ALL_BUTTON in project android_packages_apps_404Launcher by P-404.

the class LauncherRecentsView method setOverviewStateEnabled.

@Override
public void setOverviewStateEnabled(boolean enabled) {
    super.setOverviewStateEnabled(enabled);
    if (enabled) {
        LauncherState state = mActivity.getStateManager().getState();
        boolean hasClearAllButton = (state.getVisibleElements(mActivity) & CLEAR_ALL_BUTTON) != 0;
        setDisallowScrollToClearAll(!hasClearAllButton);
    }
}
Also used : LauncherState(com.android.launcher3.LauncherState)

Example 5 with CLEAR_ALL_BUTTON

use of com.android.launcher3.userevent.nano.LauncherLogProto.ControlType.CLEAR_ALL_BUTTON in project android_packages_apps_Launcher3 by ProtonAOSP.

the class LauncherRecentsView method setOverviewStateEnabled.

@Override
public void setOverviewStateEnabled(boolean enabled) {
    super.setOverviewStateEnabled(enabled);
    if (enabled) {
        LauncherState state = mActivity.getStateManager().getState();
        boolean hasClearAllButton = (state.getVisibleElements(mActivity) & CLEAR_ALL_BUTTON) != 0;
        setDisallowScrollToClearAll(!hasClearAllButton);
    }
}
Also used : LauncherState(com.android.launcher3.LauncherState)

Aggregations

LauncherState (com.android.launcher3.LauncherState)5