Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0eb2997 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 9968f7a7 a9f7016a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@ import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.android.internal.logging.MetricsLogger;
import com.android.internal.logging.MetricsProto;
import com.android.settings.R;

import java.util.Locale;
@@ -66,6 +68,8 @@ public final class SupportPhoneDialogFragment extends DialogFragment implements
    @Override
    public void onClick(View v) {
        final SupportPhone phone = getArguments().getParcelable(EXTRA_PHONE);
        MetricsLogger.action(getActivity(),
                MetricsProto.MetricsEvent.ACTION_SUPPORT_DIAL_TOLLED);
        getActivity().startActivity(phone.getDialIntent());
        dismiss();
    }