mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Mark DownloadImageTask as deprecated
This commit is contained in:
parent
1f27897679
commit
80221dace8
@ -25,6 +25,7 @@ import com.fsck.k9.provider.AttachmentProvider.AttachmentProviderColumns;
|
|||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
|
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
class DownloadImageTask extends AsyncTask<String, Void, String> {
|
class DownloadImageTask extends AsyncTask<String, Void, String> {
|
||||||
private static final String[] ATTACHMENT_PROJECTION = new String[] {
|
private static final String[] ATTACHMENT_PROJECTION = new String[] {
|
||||||
AttachmentProviderColumns._ID,
|
AttachmentProviderColumns._ID,
|
||||||
|
@ -220,6 +220,7 @@ public class MessageContainerView extends LinearLayout implements OnClickListene
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MENU_ITEM_IMAGE_SAVE: {
|
case MENU_ITEM_IMAGE_SAVE: {
|
||||||
|
//TODO: Use download manager
|
||||||
new DownloadImageTask(getContext()).execute(url);
|
new DownloadImageTask(getContext()).execute(url);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user