Fix flashing conversation list reloads.
The MergeCursor was not setting the notification uri and observers correctly. Bug: 9051928 Change-Id: I920cd836aeb6fe550bf05a7e21bc4378ef9772a3
This commit is contained in:
parent
c1ff8195f6
commit
29dc837d80
@ -3035,6 +3035,9 @@ public class EmailProvider extends ContentProvider {
|
||||
row[UIProvider.FOLDER_UNREAD_COUNT_COLUMN] = numUnread;
|
||||
row[UIProvider.FOLDER_ICON_RES_ID_COLUMN] = R.drawable.ic_folder_mark_unread;
|
||||
mc.addRow(row);
|
||||
|
||||
mc.setNotificationUri(context.getContentResolver(), uri);
|
||||
c.setNotificationUri(context.getContentResolver(), uri);
|
||||
Cursor[] cursors = new Cursor[] {mc, c};
|
||||
return new MergeCursor(cursors);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user