mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Fix indentation/code style
This commit is contained in:
parent
94c1477e93
commit
dc8cb3ba17
@ -367,7 +367,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
|
||||
|
||||
// see if we should show the welcome message
|
||||
if (intent.getBooleanExtra(EXTRA_IMPORTFIRST, false)) {
|
||||
onImport();
|
||||
onImport();
|
||||
} else if (accounts.length < 1) {
|
||||
WelcomeMessage.showWelcomeMessage(this);
|
||||
finish();
|
||||
|
@ -40,14 +40,17 @@ public class WelcomeMessage extends K9Activity implements OnClickListener{
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.next:
|
||||
AccountSetupBasics.actionNewAccount(this);
|
||||
finish();
|
||||
break;
|
||||
case R.id.import_settings:
|
||||
startActivity(new Intent(getApplicationContext(), Accounts.class)
|
||||
.putExtra(Accounts.EXTRA_IMPORTFIRST, true));
|
||||
finish();
|
||||
case R.id.next: {
|
||||
AccountSetupBasics.actionNewAccount(this);
|
||||
finish();
|
||||
break;
|
||||
}
|
||||
case R.id.import_settings: {
|
||||
startActivity(new Intent(getApplicationContext(), Accounts.class)
|
||||
.putExtra(Accounts.EXTRA_IMPORTFIRST, true));
|
||||
finish();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -596,8 +596,10 @@ public class SettingsImporter {
|
||||
|
||||
private static boolean isAccountNameUsed(String name, Account[] accounts) {
|
||||
for (Account account : accounts) {
|
||||
if (account == null)
|
||||
continue;
|
||||
if (account == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (account.getDescription().equals(name)) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user