Fix confusing setup screen title.

Change the title of the screen for adding an exchange account from "Set up email" to "Add an Exchange account".

Bug: 2159019
This commit is contained in:
Makoto Onuki 2010-02-01 13:36:53 -08:00
parent 0088918e4e
commit e5c3c98e9a
2 changed files with 12 additions and 1 deletions

View File

@ -295,6 +295,12 @@
<!-- Title of screen when setting up new email account -->
<string name="account_setup_basics_title">Set up email</string>
<!-- Title of the screen when adding exchange account -->
<string name="account_setup_basics_exchange_title">
Add an Exchange account</string>
<!-- Title of the screen when adding exchange account -->
<string name="account_setup_basics_exchange_title_alternate">
Add an Exchange ActiveSync account</string>
<!-- On "Set up email" screen, enthusiastic welcome message. -->
<string name="accounts_welcome">You can configure Email for most accounts in just a few steps.
</string>

View File

@ -197,7 +197,12 @@ public class AccountSetupBasics extends Activity
mManualSetupButton.setVisibility(View.GONE);
// Swap welcome text for EAS-specific text
TextView welcomeView = (TextView) findViewById(R.id.instructions);
welcomeView.setText(VendorPolicyLoader.getInstance(this).useAlternateExchangeStrings()
final boolean alternateStrings =
VendorPolicyLoader.getInstance(this).useAlternateExchangeStrings();
setTitle(alternateStrings
? R.string.account_setup_basics_exchange_title_alternate
: R.string.account_setup_basics_exchange_title);
welcomeView.setText(alternateStrings
? R.string.accounts_welcome_exchange_alternate
: R.string.accounts_welcome_exchange);
}