1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-15 22:15:15 -05:00

Removed unnecessary null pointer check.

This commit is contained in:
cketti 2010-07-12 01:39:29 +00:00
parent f40a01b0d2
commit 173b36d04e

View File

@ -1701,9 +1701,9 @@ public class MessageList
class MessageListAdapter extends BaseAdapter class MessageListAdapter extends BaseAdapter
{ {
private List<MessageInfoHolder> messages = java.util.Collections.synchronizedList(new ArrayList<MessageInfoHolder>()); private final List<MessageInfoHolder> messages = java.util.Collections.synchronizedList(new ArrayList<MessageInfoHolder>());
private ActivityListener mListener = new ActivityListener() private final ActivityListener mListener = new ActivityListener()
{ {
@Override @Override
public void synchronizeMailboxStarted(Account account, String folder) public void synchronizeMailboxStarted(Account account, String folder)
@ -2100,7 +2100,7 @@ public class MessageList
private static final int NON_MESSAGE_ITEMS = 1; private static final int NON_MESSAGE_ITEMS = 1;
public int getCount() public int getCount()
{ {
if (mAdapter.messages == null || mAdapter.messages.size() == 0) if (mAdapter.messages.size() == 0)
{ {
return NON_MESSAGE_ITEMS ; return NON_MESSAGE_ITEMS ;
} }
@ -2845,11 +2845,11 @@ public class MessageList
{ {
newState = computeBatchDirection(false); newState = computeBatchDirection(false);
} }
synchronized (mAdapter.messages) synchronized (mAdapter.messages)
{ {
for (MessageInfoHolder holder : mAdapter.messages) for (MessageInfoHolder holder : mAdapter.messages)
{ {
if (holder.selected) if (holder.selected)
{ {
if (v == mBatchDeleteButton) if (v == mBatchDeleteButton)