Remove unused variable MessageListFragment.mLastMessageId to prevent from confusing with mLastMessageId of the observer

This commit is contained in:
Stéphane BAUSSERON
2016-08-29 12:02:57 +02:00
parent 00430de112
commit abd578587b
@@ -134,7 +134,6 @@ public class MessageListFragment extends QKFragment implements ActivityLauncher,
// If the value >= 0, then we jump to that line. If the
// value is maxint, then we jump to the end.
private long mLastMessageId;
private BackgroundQueryHandler mBackgroundQueryHandler;
private long mThreadId;
@@ -949,10 +948,6 @@ public class MessageListFragment extends QKFragment implements ActivityLauncher,
mConversation.setMessageCount(0);
// fall through
case DELETE_MESSAGE_TOKEN:
if (cookie instanceof Boolean && ((Boolean) cookie).booleanValue()) {
// If we just deleted the last message, reset the saved id.
mLastMessageId = 0;
}
// Update the notification for new messages since they may be deleted.
NotificationManager.update(mContext);