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) {
}
/**
+ * 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.
*
* @param v The view that was clicked. Must be a tagged with a {@link ShortcutInfo}.