Merge "Update widgets on provider instantiation." into jb-ub-mail-ur10
This commit is contained in:
commit
4b32e54309
@ -868,6 +868,14 @@ public class EmailProvider extends ContentProvider {
|
|||||||
init(context);
|
init(context);
|
||||||
// Do this last, so that EmailContent/EmailProvider are initialized
|
// Do this last, so that EmailContent/EmailProvider are initialized
|
||||||
MailActivityEmail.setServicesEnabledAsync(context);
|
MailActivityEmail.setServicesEnabledAsync(context);
|
||||||
|
|
||||||
|
// Update widgets
|
||||||
|
final Intent updateAllWidgetsIntent =
|
||||||
|
new Intent(com.android.mail.utils.Utils.ACTION_NOTIFY_DATASET_CHANGED);
|
||||||
|
updateAllWidgetsIntent.putExtra(BaseWidgetProvider.EXTRA_UPDATE_ALL_WIDGETS, true);
|
||||||
|
updateAllWidgetsIntent.setType(context.getString(R.string.application_mime_type));
|
||||||
|
context.sendBroadcast(updateAllWidgetsIntent);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user