Merge "Make widgets work again" into jb-ub-mail-ur9

This commit is contained in:
Scott Kennedy 2013-03-08 01:45:21 +00:00 committed by Android (Google) Code Review
commit 1cea05ac37
1 changed files with 4 additions and 2 deletions

View File

@ -103,9 +103,11 @@ public class WidgetProvider extends BaseWidgetProvider {
final Folder uiFolder = getFolder(context, mailboxId);
if (uiAccount != null && uiFolder != null) {
WidgetService.saveWidgetInformation(context, widgetId, uiAccount, uiFolder);
WidgetService.saveWidgetInformation(context, widgetId, uiAccount,
uiFolder.uri.toString());
updateWidgetInternal(context, widgetId, uiAccount, uiFolder);
updateWidgetInternal(context, widgetId, uiAccount, uiFolder.uri,
uiFolder.conversationListUri, uiFolder.name);
// Now remove the old legacy preference value
editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId);