Support hooks for new contact photo source.

b/11387812

Change-Id: If081d58941dca0a330905dc2d80148df336995d5
This commit is contained in:
Andrew Sapperstein 2014-05-20 14:40:08 -07:00
parent ed6e6cc274
commit 6c31d220a8
2 changed files with 5 additions and 3 deletions

View File

@ -702,6 +702,7 @@
android:exported="false">
<intent-filter>
<action android:name="com.android.mail.action.RESEND_NOTIFICATIONS" />
<action android:name="com.android.mail.action.SEND_SET_NEW_EMAIL_INDICATOR" />
</intent-filter>
<intent-filter>
<action android:name="com.android.mail.action.CLEAR_NEW_MAIL_NOTIFICATIONS" />

View File

@ -701,8 +701,8 @@ public class NotificationController {
// TODO: we don't always want getAttention to be true, but we don't necessarily have a
// good heuristic for when it should or shouldn't be.
NotificationUtils.setNewEmailIndicator(context, unreadCount, unseenCount, account, folder,
true /* getAttention */);
NotificationUtils.sendSetNewEmailIndicatorIntent(context, unreadCount, unseenCount,
account, folder, true /* getAttention */);
}
private static void refreshAllNotifications(final Context context) {
@ -721,7 +721,8 @@ public class NotificationController {
}
private static void refreshAllNotificationsInternal(final Context context) {
NotificationUtils.resendNotifications(context, false, null, null);
NotificationUtils.resendNotifications(
context, false, null, null, null /* ContactPhotoFetcher */);
}
/**