OSDN Git Service

Merge commit 'remotes/korg/cupcake' into merge
authorJean-Baptiste Queru <jbq@google.com>
Tue, 17 Mar 2009 23:31:53 +0000 (16:31 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Tue, 17 Mar 2009 23:31:53 +0000 (16:31 -0700)
Conflicts:
src/com/android/browser/BrowserActivity.java

1  2 
src/com/android/browser/BrowserActivity.java

@@@ -3427,19 -3462,19 +3462,19 @@@ public class BrowserActivity extends Ac
          String cookies = CookieManager.getInstance().getCookie(url);
  
          ContentValues values = new ContentValues();
-         values.put(Downloads.COLUMN_URI, url);
 -        values.put(Downloads.URI, uri.toString());
 -        values.put(Downloads.COOKIE_DATA, cookies);
 -        values.put(Downloads.USER_AGENT, userAgent);
 -        values.put(Downloads.NOTIFICATION_PACKAGE,
++        values.put(Downloads.COLUMN_URI, uri.toString());
 +        values.put(Downloads.COLUMN_COOKIE_DATA, cookies);
 +        values.put(Downloads.COLUMN_USER_AGENT, userAgent);
 +        values.put(Downloads.COLUMN_NOTIFICATION_PACKAGE,
                  getPackageName());
 -        values.put(Downloads.NOTIFICATION_CLASS,
 +        values.put(Downloads.COLUMN_NOTIFICATION_CLASS,
                  BrowserDownloadPage.class.getCanonicalName());
 -        values.put(Downloads.VISIBILITY, Downloads.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
 -        values.put(Downloads.MIMETYPE, mimetype);
 -        values.put(Downloads.FILENAME_HINT, filename);
 -        values.put(Downloads.DESCRIPTION, uri.getHost());
 +        values.put(Downloads.COLUMN_VISIBILITY, Downloads.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
 +        values.put(Downloads.COLUMN_MIME_TYPE, mimetype);
 +        values.put(Downloads.COLUMN_FILE_NAME_HINT, filename);
-         values.put(Downloads.COLUMN_DESCRIPTION, Uri.parse(url).getHost());
++        values.put(Downloads.COLUMN_DESCRIPTION, uri.getHost());
          if (contentLength > 0) {
 -            values.put(Downloads.TOTAL_BYTES, contentLength);
 +            values.put(Downloads.COLUMN_TOTAL_BYTES, contentLength);
          }
          if (mimetype == null) {
              // We must have long pressed on a link or image to download it. We