diff options
author | Vasu Nori <vnori@google.com> | 2011-02-23 16:49:09 -0800 |
---|---|---|
committer | Vasu Nori <vnori@google.com> | 2011-02-25 17:10:22 -0800 |
commit | daed066d4dcc8873d3463ae65e16fa2e7fbcafe5 (patch) | |
tree | 2dda48eb7092f01e1cfa34e243f5000e11e0d419 /ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java | |
parent | 1d83506b9bd51fdd2332249be13019f649c19aab (diff) | |
download | android_packages_providers_DownloadProvider-daed066d4dcc8873d3463ae65e16fa2e7fbcafe5.tar.gz android_packages_providers_DownloadProvider-daed066d4dcc8873d3463ae65e16fa2e7fbcafe5.tar.bz2 android_packages_providers_DownloadProvider-daed066d4dcc8873d3463ae65e16fa2e7fbcafe5.zip |
bug:3308769 add CAB options to downloads app
Change-Id: I9bb1374b7ca0053210274e5d6981b2f2dcf6bfca
Diffstat (limited to 'ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java')
-rw-r--r-- | ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java b/ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java index 8c347822..8e93eab6 100644 --- a/ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java +++ b/ui/src/com/android/providers/downloads/ui/DateSortedDownloadAdapter.java @@ -17,10 +17,7 @@ package com.android.providers.downloads.ui; -import com.android.providers.downloads.ui.DownloadItem.DownloadSelectListener; - import android.app.DownloadManager; -import android.content.Context; import android.database.Cursor; import android.view.View; import android.view.ViewGroup; @@ -33,11 +30,10 @@ import android.widget.RelativeLayout; public class DateSortedDownloadAdapter extends DateSortedExpandableListAdapter { private DownloadAdapter mDelegate; - public DateSortedDownloadAdapter(Context context, Cursor cursor, - DownloadSelectListener selectionListener) { - super(context, cursor, + public DateSortedDownloadAdapter(DownloadList downloadList, Cursor cursor) { + super(downloadList, cursor, cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_LAST_MODIFIED_TIMESTAMP)); - mDelegate = new DownloadAdapter(context, cursor, selectionListener); + mDelegate = new DownloadAdapter(downloadList, cursor); } @Override @@ -53,7 +49,8 @@ public class DateSortedDownloadAdapter extends DateSortedExpandableListAdapter { return convertView; } - mDelegate.bindView(convertView); + int pos = getAbsolutePositionForGroupAndChildPositions(groupPosition, childPosition); + mDelegate.bindView(convertView, pos); return convertView; } } |