1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Minor code cleanup

This commit is contained in:
cketti 2012-01-20 23:32:12 +01:00
parent 7eccc1701d
commit a8f91b0f70

View File

@ -801,11 +801,9 @@ public class MessageList
mController.addListener(mAdapter.mListener); mController.addListener(mAdapter.mListener);
Account[] accountsWithNotification = null; Account[] accountsWithNotification;
if (mAccount != null) { if (mAccount != null) {
accountsWithNotification = new Account[1]; accountsWithNotification = new Account[] { mAccount };
accountsWithNotification[0] = mAccount;
} else { } else {
Preferences preferences = Preferences.getPreferences(this); Preferences preferences = Preferences.getPreferences(this);
accountsWithNotification = preferences.getAccounts(); accountsWithNotification = preferences.getAccounts();