Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e769d168 authored by Mohammadinamul Sheik's avatar Mohammadinamul Sheik Committed by Android (Google) Code Review
Browse files

Merge "Add onClickPagedViewIcon to the Launcher." into ub-now-mister-ugly

parents ef3784cf 3b1a54a2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -511,8 +511,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
            if (mPressedIcon != null) {
                mPressedIcon.lockDrawableState();
            }
            mLauncher.startActivitySafely(v, appInfo.intent, appInfo);
            mLauncher.getStats().recordLaunch(appInfo.intent);
            mLauncher.onClickPagedViewIcon(v, appInfo);
        } else if (v instanceof PagedViewWidget) {
            // Let the user know that they have to long press to add a widget
            if (mWidgetInstructionToast != null) {
+11 −0
Original line number Diff line number Diff line
@@ -2446,6 +2446,17 @@ public class Launcher extends Activity
        }
    }

    /**
     * Event handler for a paged view icon click.
     * @param v The view that was clicked.
     * @param appInfo The {link AppInfo} of the view.
     */
    public void onClickPagedViewIcon(View v, AppInfo appInfo) {
        if (LOGD) Log.d(TAG, "onClickPagedViewIcon");
        startActivitySafely(v, appInfo.intent, appInfo);
        getStats().recordLaunch(appInfo.intent);
    }

    /**
     * Event handler for an app shortcut click.
     *