Formatting of Accounts.java

This commit is contained in:
Sander Bogaert 2012-08-28 10:43:25 -04:00 committed by Andrew Chen
parent 0f51eb54c1
commit 416ac8b646
1 changed files with 275 additions and 274 deletions

View File

@ -1796,14 +1796,12 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
EnumSet<ACCOUNT_LOCATION> accountLocation = accountLocation(mSelectedContextAccount);
if (accountLocation.contains(ACCOUNT_LOCATION.TOP)) {
menu.findItem(R.id.move_up).setVisible(false);
}
else {
} else {
menu.findItem(R.id.move_up).setVisible(true);
}
if (accountLocation.contains(ACCOUNT_LOCATION.BOTTOM)) {
menu.findItem(R.id.move_down).setVisible(false);
}
else {
} else {
menu.findItem(R.id.move_down).setVisible(true);
}
@ -1974,7 +1972,9 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
} finally {
try {
is.close();
} catch (IOException e) { /* Ignore */ }
} catch (IOException e) {
/* Ignore */
}
}
} catch (SettingsImportExportException e) {
Log.w(K9.LOG_TAG, "Exception during import", e);
@ -2045,13 +2045,14 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
} finally {
try {
is.close();
} catch (IOException e) { /* Ignore */ }
} catch (IOException e) {
/* Ignore */
}
}
} catch (SettingsImportExportException e) {
Log.w(K9.LOG_TAG, "Exception during export", e);
return false;
}
catch (FileNotFoundException e) {
} catch (FileNotFoundException e) {
Log.w(K9.LOG_TAG, "Couldn't read content from URI " + mUri);
return false;
}