Search in sources :

Example 1 with MAX_SHORTCUTS

use of com.android.launcher3.popup.PopupPopulator.MAX_SHORTCUTS in project android_packages_apps_Launcher3 by crdroidandroid.

the class PopupContainerWithArrow method updateHiddenShortcuts.

private void updateHiddenShortcuts() {
    int allowedCount = mNotificationContainer != null ? MAX_SHORTCUTS_IF_NOTIFICATIONS : MAX_SHORTCUTS;
    int total = mShortcuts.size();
    for (int i = 0; i < total; i++) {
        DeepShortcutView view = mShortcuts.get(i);
        view.setVisibility(i >= allowedCount ? GONE : VISIBLE);
    }
}
Also used : Point(android.graphics.Point) DeepShortcutView(com.android.launcher3.shortcuts.DeepShortcutView)

Aggregations

Point (android.graphics.Point)1 DeepShortcutView (com.android.launcher3.shortcuts.DeepShortcutView)1