mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-30 23:00:09 -05:00
Fixes Issue 844
Definitely, some optimizations could be made Also, reliably display the folder name at the top of the MessageList Activity
This commit is contained in:
parent
2c7853c539
commit
514b4cf121
@ -462,12 +462,6 @@ public class MessageList
|
||||
onRestoreListState(savedInstanceState);
|
||||
}
|
||||
|
||||
setTitle(
|
||||
mAccount.getDescription()
|
||||
+ " - " +
|
||||
mCurrentFolder.displayName
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
private void onRestoreListState(Bundle savedInstanceState)
|
||||
@ -514,13 +508,21 @@ public class MessageList
|
||||
sortDateAscending = MessagingController.getInstance(getApplication()).isSortAscending(SORT_TYPE.SORT_DATE);
|
||||
|
||||
MessagingController.getInstance(getApplication()).addListener(mAdapter.mListener);
|
||||
|
||||
mAdapter.messages.clear();
|
||||
mAdapter.notifyDataSetChanged();
|
||||
MessagingController.getInstance(getApplication()).listLocalMessages(mAccount, mFolderName, mAdapter.mListener);
|
||||
|
||||
NotificationManager notifMgr = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
notifMgr.cancel(mAccount.getAccountNumber());
|
||||
notifMgr.cancel(-1000 - mAccount.getAccountNumber());
|
||||
|
||||
setTitle(
|
||||
mAccount.getDescription()
|
||||
+ " - " +
|
||||
mCurrentFolder.displayName
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user