Adding events checking for Launcher starting apps
Change-Id: Id651397f643280a9f99a470df029479bd1b41e5c
This commit is contained in:
1 parent
3c7f820e2b
commit
6098a8c8c0
9 files changed
+47
No files matched your search
@@ -41,6 +41,7 @@ import com.android.launcher3.logging.StatsLogUtils;
|
||||
import com.android.launcher3.logging.StatsLogUtils.LogStateProvider;
|
||||
import com.android.launcher3.logging.UserEventDispatcher;
|
||||
import com.android.launcher3.logging.UserEventDispatcher.UserEventDelegate;
|
||||
import com.android.launcher3.testing.TestLogging;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto;
|
||||
import com.android.launcher3.util.SystemUiController;
|
||||
import com.android.launcher3.util.ViewCache;
|
||||
@@ -329,6 +330,9 @@ public abstract class BaseActivity extends Activity
|
||||
return;
|
||||
}
|
||||
try {
|
||||
if (Utilities.IS_RUNNING_IN_TEST_HARNESS) {
|
||||
TestLogging.recordEvent("start: shortcut: " + packageName);
|
||||
}
|
||||
getSystemService(LauncherApps.class).startShortcut(packageName, id, sourceBounds,
|
||||
startActivityOptions, user);
|
||||
} catch (SecurityException | IllegalStateException e) {
|
||||
|
||||
Reference in new issue
Block a user