diff --git a/res/values/strings.xml b/res/values/strings.xml index 0ab1ec1e8..c7a5740e7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -906,6 +906,8 @@ Create new e-mail address on \"%1$s\" and log in there? Create new e-mail address on \"%1$s\" and log in there?\n\nYour existing account will not be deleted. Use the \"Switch Account\" item to switch between your accounts. Login successful—your e-mail address is %1$s\n\nIf you like, you can now enter a name and an profile image that will be displayed to people you write to. + Set a name for your new account that your contacts will recognize. You can also set a profile image. + Please enter a name. The scanned QR code cannot be used to set up a new account. The scanned QR code is for setting up a new account. You can scan the QR code when setting up a new Delta Chat installation. diff --git a/src/org/thoughtcrime/securesms/CreateProfileActivity.java b/src/org/thoughtcrime/securesms/CreateProfileActivity.java index dc6066689..accce0228 100644 --- a/src/org/thoughtcrime/securesms/CreateProfileActivity.java +++ b/src/org/thoughtcrime/securesms/CreateProfileActivity.java @@ -226,7 +226,7 @@ public class CreateProfileActivity extends BaseActionBarActivity implements Emoj if (fromWelcome) { String addr = DcHelper.get(this, "addr"); - loginSuccessText.setText(getString(R.string.qraccount_success_enter_name, addr)); + loginSuccessText.setText(R.string.set_name_and_avatar_explain); ViewUtil.findById(this, R.id.status_text_layout).setVisibility(View.GONE); ViewUtil.findById(this, R.id.information_label).setVisibility(View.GONE); passwordAccountSettings.setVisibility(View.GONE); @@ -294,10 +294,11 @@ public class CreateProfileActivity extends BaseActionBarActivity implements Emoj } private void handleUpload() { - final String name; - - if (TextUtils.isEmpty(this.name.getText().toString())) name = null; - else name = this.name.getText().toString(); + if (TextUtils.isEmpty(this.name.getText())) { + Toast.makeText(this, R.string.please_enter_name, Toast.LENGTH_LONG).show(); + return; + } + final String name = this.name.getText().toString(); new AsyncTask() { @Override