Log start of sign in flow

Test: statsd_testdrive
https://paste.googleplex.com/4692799132270592
Bug: 315947418
Change-Id: I94a1a44596206c15a5497fd8aec1d8a2628f03e3
This commit is contained in:
Anna Zhuravleva
2023-12-13 16:09:57 +00:00
parent 11df0d4c17
commit 9ad57d4cc0
2 changed files with 4 additions and 0 deletions

View File

@@ -97,6 +97,8 @@ public class PrivateSpaceSetLockFragment extends InstrumentedFragment {
mMetricsFeatureProvider.action(
getContext(), SettingsEnums.ACTION_PRIVATE_SPACE_SETUP_USE_SCREEN_LOCK);
// Simply Use default screen lock. No need to handle
mMetricsFeatureProvider.action(
getContext(), SettingsEnums.ACTION_PRIVATE_SPACE_SETUP_ACCOUNT_LOGIN_START);
launchActivityForAction(ACCOUNT_LOGIN_ACTION);
};
}

View File

@@ -66,6 +66,8 @@ public class PrivateSpaceSetupActivity extends FragmentActivity {
if (userHandle != null) {
Intent intent = new Intent(this, PrivateProfileContextHelperActivity.class);
intent.putExtra(EXTRA_ACTION_TYPE, ACCOUNT_LOGIN_ACTION);
mMetricsFeatureProvider.action(
this, SettingsEnums.ACTION_PRIVATE_SPACE_SETUP_ACCOUNT_LOGIN_START);
startActivityForResultAsUser(intent, ACCOUNT_LOGIN_ACTION, userHandle);
} else {
Log.w(TAG, "Private profile user handle is null");