Better handling if no api key is selected

This commit is contained in:
Dominik Schürmann 2014-10-09 01:52:44 +02:00
parent 7646baf486
commit 134e1cb764

View File

@ -176,7 +176,7 @@ public class RemoteServiceActivity extends ActionBarActivity {
public void onClick(View v) {
// Save
// user needs to select a key, but also allow None for mUpdateExistingAccount
// user needs to select a key if it has explicitly requested (None is only allowed for new accounts)
if (mUpdateExistingAccount && mAccSettingsFragment.getAccSettings().getKeyId() == Constants.key.none) {
Notify.showNotify(RemoteServiceActivity.this, getString(R.string.api_register_error_select_key), Notify.Style.ERROR);
} else {