summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-01-08 12:18:29 -0800
committerTom Powell <zifnab@zifnab06.net>2017-03-26 16:14:41 -0700
commitf9f332ac7e47587eae8b1f7a1917b3800ccfd8ce (patch)
tree0895ce3518c374a0155ac32d2695eeb0e4ab88ec
parent4c45a33b0c1f800e0f30640b44ae8a1cc7942845 (diff)
downloadandroid_packages_apps_Trebuchet-f9f332ac7e47587eae8b1f7a1917b3800ccfd8ce.zip
android_packages_apps_Trebuchet-f9f332ac7e47587eae8b1f7a1917b3800ccfd8ce.tar.gz
android_packages_apps_Trebuchet-f9f332ac7e47587eae8b1f7a1917b3800ccfd8ce.tar.bz2
Trebuchet: Don't crash on widget clicks
Issue-id: NIGHTLIES-2266 Change-Id: I804614c4d4636f58374c8f5d3e6252fbcd40ae29
-rw-r--r--src/com/android/launcher3/Launcher.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index f1fdae6..5dc7f93 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2994,6 +2994,17 @@ public class Launcher extends Activity
// Start activities
startAppShortcutOrInfoActivity(v);
+ ComponentName componentName = intent.getComponent();
+ if (componentName != null) {
+ String packageName = intent.getComponent().getPackageName();
+ LauncherApplication.getLauncherStats()
+ .sendAppLaunchEvent(LauncherStats.ORIGIN_HOMESCREEN,
+ packageName);
+ if (LauncherStats.SETTINGS_PACKAGE_NAME.equals(packageName)) {
+ LauncherApplication.getLauncherStats().sendSettingsOpenedEvent(
+ LauncherStats.ORIGIN_HOMESCREEN);
+ }
+ }
if (mLauncherCallbacks != null) {
mLauncherCallbacks.onClickAppShortcut(v);