Merge "Support hooks for new contact photo source." into ub-gmail-ur13-dev
This commit is contained in:
commit
4e6aa25286
@ -702,6 +702,7 @@
|
|||||||
android:exported="false">
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.android.mail.action.RESEND_NOTIFICATIONS" />
|
<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>
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.android.mail.action.CLEAR_NEW_MAIL_NOTIFICATIONS" />
|
<action android:name="com.android.mail.action.CLEAR_NEW_MAIL_NOTIFICATIONS" />
|
||||||
|
@ -701,8 +701,8 @@ public class NotificationController {
|
|||||||
|
|
||||||
// TODO: we don't always want getAttention to be true, but we don't necessarily have a
|
// 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.
|
// good heuristic for when it should or shouldn't be.
|
||||||
NotificationUtils.setNewEmailIndicator(context, unreadCount, unseenCount, account, folder,
|
NotificationUtils.sendSetNewEmailIndicatorIntent(context, unreadCount, unseenCount,
|
||||||
true /* getAttention */);
|
account, folder, true /* getAttention */);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void refreshAllNotifications(final Context context) {
|
private static void refreshAllNotifications(final Context context) {
|
||||||
@ -721,7 +721,8 @@ public class NotificationController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void refreshAllNotificationsInternal(final Context context) {
|
private static void refreshAllNotificationsInternal(final Context context) {
|
||||||
NotificationUtils.resendNotifications(context, false, null, null);
|
NotificationUtils.resendNotifications(
|
||||||
|
context, false, null, null, null /* ContactPhotoFetcher */);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user