Merge change 25427 into eclair

* changes:
  Don't add backslash if there already is one; fixes #2124974
This commit is contained in:
Android (Google) Code Review 2009-09-17 13:07:59 -04:00
commit 492e8498e7

View File

@ -157,8 +157,12 @@ public class AccountSetupExchange extends Activity implements OnClickListener,
}
if (username != null) {
// Add a backslash to the start of the username as an affordance
mUsernameView.setText("\\" + username);
// Add a backslash to the start of the username, but only if the username has no
// backslash in it.
if (username.indexOf('\\') < 0) {
username = "\\" + username;
}
mUsernameView.setText(username);
}
if (password != null) {