Better handling if no api key is selected
This commit is contained in:
@@ -176,7 +176,7 @@ public class RemoteServiceActivity extends ActionBarActivity {
|
|||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
// Save
|
// 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) {
|
if (mUpdateExistingAccount && mAccSettingsFragment.getAccSettings().getKeyId() == Constants.key.none) {
|
||||||
Notify.showNotify(RemoteServiceActivity.this, getString(R.string.api_register_error_select_key), Notify.Style.ERROR);
|
Notify.showNotify(RemoteServiceActivity.this, getString(R.string.api_register_error_select_key), Notify.Style.ERROR);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user