mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
am e769d168: Merge "Add onClickPagedViewIcon to the Launcher." into ub-now-mister-ugly
* commit 'e769d1681e1177b9e37c0be9e12d1ede55d4e3a9': Add onClickPagedViewIcon to the Launcher.
This commit is contained in:
committed by
Android Git Automerger
commit
7b763d01b2
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user