mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 22:28:10 -05:00
Quick updates from a code review pass by cketti
This commit is contained in:
parent
d2e3061f20
commit
ce9a84e8fd
@ -1509,13 +1509,6 @@ public class MessagingController implements Runnable
|
|||||||
|
|
||||||
unsyncedMessages.clear();
|
unsyncedMessages.clear();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Grab the content of the small messages first. This is going to
|
* Grab the content of the small messages first. This is going to
|
||||||
* be very fast and at very worst will be a single up of a few bytes and a single
|
* be very fast and at very worst will be a single up of a few bytes and a single
|
||||||
@ -1526,9 +1519,6 @@ public class MessagingController implements Runnable
|
|||||||
// fp.add(FetchProfile.Item.FLAGS);
|
// fp.add(FetchProfile.Item.FLAGS);
|
||||||
// fp.add(FetchProfile.Item.ENVELOPE);
|
// fp.add(FetchProfile.Item.ENVELOPE);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
downloadSmallMessages(account, remoteFolder, localFolder, smallMessages, progress, unreadBeforeStart, newMessages, todo, fp);
|
downloadSmallMessages(account, remoteFolder, localFolder, smallMessages, progress, unreadBeforeStart, newMessages, todo, fp);
|
||||||
|
|
||||||
|
|
||||||
@ -4643,7 +4633,7 @@ public class MessagingController implements Runnable
|
|||||||
Intent i = FolderList.actionHandleNotification(context, account, account.getAutoExpandFolderName());
|
Intent i = FolderList.actionHandleNotification(context, account, account.getAutoExpandFolderName());
|
||||||
PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0);
|
PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0);
|
||||||
|
|
||||||
String accountNotice = context.getString(R.string.notification_new_one_account_fmt, (previousUnreadMessageCount + newMessageCount.get()), account.getDescription());
|
String accountNotice = context.getString(R.string.notification_new_one_account_fmt, notif.number, account.getDescription());
|
||||||
notif.setLatestEventInfo(context, accountNotice, messageNotice, pi);
|
notif.setLatestEventInfo(context, accountNotice, messageNotice, pi);
|
||||||
|
|
||||||
// Only ring or vibrate if we have not done so already on this
|
// Only ring or vibrate if we have not done so already on this
|
||||||
|
Loading…
Reference in New Issue
Block a user