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:
committed by
Michael Bestas
parent
db86c22c41
commit
2b605d17bb
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
<!-- Welcome page -->
|
<!-- Welcome page -->
|
||||||
<string name="setup_welcome_message">Welcome to <xliff:g id="name" example="LineageOS">%1$s</xliff:g></string>
|
<string name="setup_welcome_message">Welcome to <xliff:g id="name" example="LineageOS">%1$s</xliff:g></string>
|
||||||
|
<string name="setup_managed_profile_welcome_message">Set up your work profile</string>
|
||||||
<string name="emergency_call">Emergency call</string>
|
<string name="emergency_call">Emergency call</string>
|
||||||
<string name="accessibility_settings">Accessibility settings</string>
|
<string name="accessibility_settings">Accessibility settings</string>
|
||||||
|
|
||||||
|
|||||||
@@ -52,9 +52,13 @@ public class WelcomeActivity extends SubBaseActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextView welcomeTitle = findViewById(R.id.welcome_title);
|
TextView welcomeTitle = findViewById(R.id.welcome_title);
|
||||||
|
if (SetupWizardUtils.isManagedProfile(this)) {
|
||||||
|
welcomeTitle.setText(getString(R.string.setup_managed_profile_welcome_message));
|
||||||
|
} else {
|
||||||
welcomeTitle.setText(getString(R.string.setup_welcome_message,
|
welcomeTitle.setText(getString(R.string.setup_welcome_message,
|
||||||
getString(R.string.os_name)));
|
getString(R.string.os_name)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutResId() {
|
protected int getLayoutResId() {
|
||||||
|
|||||||
Reference in New Issue
Block a user