Merge "Log "launched from" packge for all activities" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-08-21 17:58:05 +00:00
committed by Android (Google) Code Review

View File

@@ -370,7 +370,7 @@ class ActivityMetricsLogger {
builder.setType(type);
builder.addTaggedData(FIELD_CLASS_NAME, info.launchedActivity.info.name);
final boolean isInstantApp = info.launchedActivity.info.applicationInfo.isInstantApp();
if (isInstantApp && info.launchedActivity.launchedFromPackage != null) {
if (info.launchedActivity.launchedFromPackage != null) {
builder.addTaggedData(APP_TRANSITION_CALLING_PACKAGE_NAME,
info.launchedActivity.launchedFromPackage);
}