Merge \"Add logging when click tollfree/tolled phone support button\" into nyc-mr1-dev

am: a0eb2997a9

Change-Id: I7a0d7e8cf410e05e578690b6ece69d6489fb3d81
This commit is contained in:
Fan Zhang
2016-07-06 20:56:03 +00:00
committed by android-build-merger
2 changed files with 8 additions and 0 deletions

View File

@@ -397,6 +397,8 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
final SupportPhone phone = mSupportFeatureProvider
.getSupportPhones(mSelectedCountry, true /* isTollFree */);
if (phone != null) {
MetricsLogger.action(mActivity,
MetricsProto.MetricsEvent.ACTION_SUPPORT_DAIL_TOLLFREE);
mActivity.startActivity(phone.getDialIntent());
}
break;
@@ -406,6 +408,8 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
.getSupportPhones(mSelectedCountry, false /* isTollFree */);
final SupportPhoneDialogFragment fragment =
SupportPhoneDialogFragment.newInstance(phone);
MetricsLogger.action(mActivity,
MetricsProto.MetricsEvent.ACTION_SUPPORT_VIEW_TRAVEL_ABROAD_DIALOG);
fragment.show(mActivity.getFragmentManager(),
SupportPhoneDialogFragment.TAG);
break;