No longer pretend there are attachment types we don't care about
This commit is contained in:
parent
3c4ad91614
commit
6cb3c991db
2 changed files with 0 additions and 35 deletions
|
@ -282,33 +282,6 @@ public class K9 extends Application {
|
||||||
*/
|
*/
|
||||||
private static boolean sDatabasesUpToDate = false;
|
private static boolean sDatabasesUpToDate = false;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The MIME type(s) of attachments we're willing to view.
|
|
||||||
*/
|
|
||||||
public static final String[] ACCEPTABLE_ATTACHMENT_VIEW_TYPES = new String[] {
|
|
||||||
"*/*",
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The MIME type(s) of attachments we're not willing to view.
|
|
||||||
*/
|
|
||||||
public static final String[] UNACCEPTABLE_ATTACHMENT_VIEW_TYPES = new String[] {
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The MIME type(s) of attachments we're willing to download to SD.
|
|
||||||
*/
|
|
||||||
public static final String[] ACCEPTABLE_ATTACHMENT_DOWNLOAD_TYPES = new String[] {
|
|
||||||
"*/*",
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The MIME type(s) of attachments we're not willing to download to SD.
|
|
||||||
*/
|
|
||||||
public static final String[] UNACCEPTABLE_ATTACHMENT_DOWNLOAD_TYPES = new String[] {
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For use when displaying that no folder is selected
|
* For use when displaying that no folder is selected
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -151,14 +151,6 @@ public class AttachmentView extends FrameLayout implements OnClickListener, OnLo
|
||||||
viewButton = (Button) findViewById(R.id.view);
|
viewButton = (Button) findViewById(R.id.view);
|
||||||
downloadButton = (Button) findViewById(R.id.download);
|
downloadButton = (Button) findViewById(R.id.download);
|
||||||
|
|
||||||
if ((!MimeUtility.mimeTypeMatches(contentType, K9.ACCEPTABLE_ATTACHMENT_VIEW_TYPES))
|
|
||||||
|| (MimeUtility.mimeTypeMatches(contentType, K9.UNACCEPTABLE_ATTACHMENT_VIEW_TYPES))) {
|
|
||||||
viewButton.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
if ((!MimeUtility.mimeTypeMatches(contentType, K9.ACCEPTABLE_ATTACHMENT_DOWNLOAD_TYPES))
|
|
||||||
|| (MimeUtility.mimeTypeMatches(contentType, K9.UNACCEPTABLE_ATTACHMENT_DOWNLOAD_TYPES))) {
|
|
||||||
downloadButton.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
if (size > K9.MAX_ATTACHMENT_DOWNLOAD_SIZE) {
|
if (size > K9.MAX_ATTACHMENT_DOWNLOAD_SIZE) {
|
||||||
viewButton.setVisibility(View.GONE);
|
viewButton.setVisibility(View.GONE);
|
||||||
downloadButton.setVisibility(View.GONE);
|
downloadButton.setVisibility(View.GONE);
|
||||||
|
|
Loading…
Reference in a new issue