Merge change 6328 into donut
* changes: String fixes for the credential storage and vpn settings.
This commit is contained in:
@@ -70,9 +70,9 @@ public class AuthenticationActor implements VpnProfileActor {
|
||||
TextView passwordView = (TextView) d.findViewById(R.id.password_value);
|
||||
Context c = mContext;
|
||||
if (TextUtils.isEmpty(usernameView.getText().toString())) {
|
||||
return c.getString(R.string.vpn_username);
|
||||
return c.getString(R.string.vpn_a_username);
|
||||
} else if (TextUtils.isEmpty(passwordView.getText().toString())) {
|
||||
return c.getString(R.string.vpn_password);
|
||||
return c.getString(R.string.vpn_a_password);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ class L2tpEditor extends VpnProfileEditor {
|
||||
|
||||
return ((result != null)
|
||||
? result
|
||||
: validate(mSecretString, R.string.vpn_l2tp_secret));
|
||||
: validate(mSecretString, R.string.vpn_a_l2tp_secret));
|
||||
}
|
||||
|
||||
private Preference createSecretPreference(Context c) {
|
||||
|
@@ -55,10 +55,10 @@ class L2tpIpsecEditor extends L2tpEditor {
|
||||
public String validate() {
|
||||
String result = super.validate();
|
||||
if (result == null) {
|
||||
result = validate(mUserCertificate, R.string.vpn_user_certificate);
|
||||
result = validate(mUserCertificate, R.string.vpn_a_user_certificate);
|
||||
}
|
||||
if (result == null) {
|
||||
result = validate(mCaCertificate, R.string.vpn_ca_certificate);
|
||||
result = validate(mCaCertificate, R.string.vpn_a_ca_certificate);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@@ -47,7 +47,7 @@ class L2tpIpsecPskEditor extends L2tpEditor {
|
||||
|
||||
return ((result != null)
|
||||
? result
|
||||
: validate(mPresharedKey, R.string.vpn_ipsec_presharedkey));
|
||||
: validate(mPresharedKey, R.string.vpn_a_ipsec_presharedkey));
|
||||
}
|
||||
|
||||
private Preference createPresharedKeyPreference(Context c) {
|
||||
|
@@ -85,10 +85,10 @@ class VpnProfileEditor {
|
||||
* null if all the inputs are valid
|
||||
*/
|
||||
public String validate() {
|
||||
String result = validate(mName, R.string.vpn_name);
|
||||
String result = validate(mName, R.string.vpn_a_name);
|
||||
return ((result != null)
|
||||
? result
|
||||
: validate(mServerName, R.string.vpn_vpn_server));
|
||||
: validate(mServerName, R.string.vpn_a_vpn_server));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user