welcome: Use a separate string for work profile start

* Intentionally not touching this for secondary users
  so that it doesn't look different from the main user.
* We don't explicitly support that, but let's also not
  go out of our way to break something like this.

Change-Id: I374b45feb7d6dd17e5d03d0f7fbaf6d9e22f1d55
This commit is contained in:
Chirayu Desai
2023-01-18 23:13:00 +05:30
committed by Michael Bestas
parent db86c22c41
commit 2b605d17bb
2 changed files with 7 additions and 2 deletions

View File

@@ -52,8 +52,12 @@ public class WelcomeActivity extends SubBaseActivity {
}
TextView welcomeTitle = findViewById(R.id.welcome_title);
welcomeTitle.setText(getString(R.string.setup_welcome_message,
getString(R.string.os_name)));
if (SetupWizardUtils.isManagedProfile(this)) {
welcomeTitle.setText(getString(R.string.setup_managed_profile_welcome_message));
} else {
welcomeTitle.setText(getString(R.string.setup_welcome_message,
getString(R.string.os_name)));
}
}
@Override