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

Commit 51f632da authored by Yuanru Qian's avatar Yuanru Qian Committed by Android (Google) Code Review
Browse files

Merge "Fix the logging connected devices entrypoint" into main

parents 54767ced c2cdc12e
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -129,7 +129,9 @@ public class ConnectedDeviceDashboardFragment extends DashboardFragment {
        String action = intent != null ? intent.getAction() : "";
        if (TextUtils.equals(Utils.SYSTEMUI_PACKAGE_NAME, callingAppPackageName)) {
            mMetricsFeatureProvider.action(
                    context, SettingsEnums.SETTINGS_CONNECTED_DEVICES_ENTRYPOINT, ENTRYPOINT_SYSUI);
                    context,
                    SettingsEnums.ACTION_OPEN_SETTINGS_CONNECTED_DEVICES,
                    ENTRYPOINT_SYSUI);
        } else if (TextUtils.equals(Utils.SETTINGS_PACKAGE_NAME, callingAppPackageName)
                && TextUtils.equals(Intent.ACTION_MAIN, action)) {
            String sourceCategory =
@@ -143,18 +145,20 @@ public class ConnectedDeviceDashboardFragment extends DashboardFragment {
                            : "";
            mMetricsFeatureProvider.action(
                    context,
                    SettingsEnums.SETTINGS_CONNECTED_DEVICES_ENTRYPOINT,
                    SettingsEnums.ACTION_OPEN_SETTINGS_CONNECTED_DEVICES,
                    ENTRYPOINT_SETTINGS + "_" + sourceCategory);
        } else if (TextUtils.equals(Utils.SETTINGS_PACKAGE_NAME, callingAppPackageName)
                && TextUtils.equals(SETTINGS_SEARCH_ACTION, action)) {
            mMetricsFeatureProvider.action(
                    context,
                    SettingsEnums.SETTINGS_CONNECTED_DEVICES_ENTRYPOINT,
                    SettingsEnums.ACTION_OPEN_SETTINGS_CONNECTED_DEVICES,
                    ENTRYPOINT_SETTINGS_SEARCH);

        } else {
            mMetricsFeatureProvider.action(
                    context, SettingsEnums.SETTINGS_CONNECTED_DEVICES_ENTRYPOINT, ENTRYPOINT_OTHER);
                    context,
                    SettingsEnums.ACTION_OPEN_SETTINGS_CONNECTED_DEVICES,
                    ENTRYPOINT_OTHER);
        }
    }