am 281c6365: Add a new FolderUri

* commit '281c6365fb95037ca284dd8c910538639e8b3dcb':
  Add a new FolderUri
This commit is contained in:
Scott Kennedy 2013-07-16 15:29:21 -07:00 committed by Android Git Automerger
commit 1cd31cea40
5 changed files with 8 additions and 7 deletions

View File

@ -357,7 +357,8 @@ public class AccountSettings extends PreferenceActivity implements FeedbackEnabl
// See bug 6242668
// Get the mailbox id from the folder
final long mailboxId = Long.parseLong(folder.uri.getPathSegments().get(1));
final long mailboxId =
Long.parseLong(folder.folderUri.fullUri.getPathSegments().get(1));
MailboxSettings.start(this, mailboxId);
finish();

View File

@ -3986,7 +3986,7 @@ public class EmailProvider extends ContentProvider {
message.mId);
} else {
final Folder f = flist.folders.get(0);
final Uri uri = f.uri;
final Uri uri = f.folderUri.fullUri;
final Long mailboxId = Long.parseLong(uri.getLastPathSegment());
putIntegerLongOrBoolean(ourValues, MessageColumns.MAILBOX_KEY, mailboxId);
}

View File

@ -180,7 +180,7 @@ public class FolderPickerActivity extends Activity implements FolderPickerCallba
@Override
public void select(Folder folder) {
String folderId = folder.uri.getLastPathSegment();
String folderId = folder.folderUri.fullUri.getLastPathSegment();
Long id = Long.parseLong(folderId);
ContentValues values = new ContentValues();

View File

@ -107,10 +107,10 @@ public class WidgetProvider extends BaseWidgetProvider {
if (uiAccount != null && uiFolder != null) {
WidgetService.saveWidgetInformation(context, widgetId, uiAccount,
uiFolder.uri.toString());
uiFolder.folderUri.fullUri.toString());
updateWidgetInternal(context, widgetId, uiAccount, uiFolder.type, uiFolder.uri,
uiFolder.conversationListUri, uiFolder.name);
updateWidgetInternal(context, widgetId, uiAccount, uiFolder.type,
uiFolder.folderUri.fullUri, uiFolder.conversationListUri, uiFolder.name);
// Now remove the old legacy preference value
editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId);

View File

@ -321,6 +321,6 @@ public class MailActivityEmail extends com.android.mail.ui.MailActivity {
folderCursor.close();
}
return Utils.createViewFolderIntent(this, folder.uri, account);
return Utils.createViewFolderIntent(this, folder.folderUri.fullUri, account);
}
}