Search in sources :

Example 1 with StatsLogManager

use of com.android.launcher3.logging.StatsLogManager in project android_packages_apps_Launcher3 by crdroidandroid.

the class AllAppsRecyclerView method onScrollStateChanged.

@Override
public void onScrollStateChanged(int state) {
    super.onScrollStateChanged(state);
    StatsLogManager mgr = BaseDraggingActivity.fromContext(getContext()).getStatsLogManager();
    switch(state) {
        case SCROLL_STATE_DRAGGING:
            requestFocus();
            mgr.logger().sendToInteractionJankMonitor(LAUNCHER_ALLAPPS_VERTICAL_SWIPE_BEGIN, this);
            break;
        case SCROLL_STATE_IDLE:
            mgr.logger().sendToInteractionJankMonitor(LAUNCHER_ALLAPPS_VERTICAL_SWIPE_END, this);
            break;
    }
}
Also used : StatsLogManager(com.android.launcher3.logging.StatsLogManager)

Aggregations

StatsLogManager (com.android.launcher3.logging.StatsLogManager)1