mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Package visibility
This commit is contained in:
parent
ca10e4d94a
commit
ba4dd24bd5
@ -2624,7 +2624,7 @@ public class MessageCompose extends K9Activity implements OnClickListener,
|
|||||||
String name = MimeUtility.getHeaderParameter(contentType, "name");
|
String name = MimeUtility.getHeaderParameter(contentType, "name");
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
Body body = part.getBody();
|
Body body = part.getBody();
|
||||||
if (body != null && body instanceof LocalAttachmentBody) {
|
if (body instanceof LocalAttachmentBody) {
|
||||||
final Uri uri = ((LocalAttachmentBody) body).getContentUri();
|
final Uri uri = ((LocalAttachmentBody) body).getContentUri();
|
||||||
mHandler.post(new Runnable() {
|
mHandler.post(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -10,7 +10,7 @@ import org.apache.james.mime4j.util.MimeUtil;
|
|||||||
import com.fsck.k9.mail.MessagingException;
|
import com.fsck.k9.mail.MessagingException;
|
||||||
import com.fsck.k9.mail.internet.MimeMessage;
|
import com.fsck.k9.mail.internet.MimeMessage;
|
||||||
|
|
||||||
public class AttachmentMessageBodyUtil {
|
class AttachmentMessageBodyUtil {
|
||||||
public static void writeTo(BinaryAttachmentBody body, OutputStream out) throws IOException,
|
public static void writeTo(BinaryAttachmentBody body, OutputStream out) throws IOException,
|
||||||
MessagingException {
|
MessagingException {
|
||||||
InputStream in = body.getInputStream();
|
InputStream in = body.getInputStream();
|
||||||
@ -31,4 +31,4 @@ public class AttachmentMessageBodyUtil {
|
|||||||
in.close();
|
in.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ import com.fsck.k9.mail.filter.Base64OutputStream;
|
|||||||
* Superclass for attachments that contain binary data.
|
* Superclass for attachments that contain binary data.
|
||||||
* The source for the data differs for the subclasses.
|
* The source for the data differs for the subclasses.
|
||||||
*/
|
*/
|
||||||
public abstract class BinaryAttachmentBody implements Body {
|
abstract class BinaryAttachmentBody implements Body {
|
||||||
protected String mEncoding;
|
protected String mEncoding;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -55,4 +55,4 @@ public abstract class BinaryAttachmentBody implements Body {
|
|||||||
public String getEncoding() {
|
public String getEncoding() {
|
||||||
return mEncoding;
|
return mEncoding;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,4 +37,4 @@ public class LocalAttachmentBody extends BinaryAttachmentBody {
|
|||||||
public Uri getContentUri() {
|
public Uri getContentUri() {
|
||||||
return mUri;
|
return mUri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,4 +28,4 @@ public class LocalAttachmentBodyPart extends MimeBodyPart {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return "" + mAttachmentId;
|
return "" + mAttachmentId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ import com.fsck.k9.mail.MessagingException;
|
|||||||
* A {@link LocalAttachmentBody} extension containing a message/rfc822 type body
|
* A {@link LocalAttachmentBody} extension containing a message/rfc822 type body
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class LocalAttachmentMessageBody extends LocalAttachmentBody implements CompositeBody {
|
class LocalAttachmentMessageBody extends LocalAttachmentBody implements CompositeBody {
|
||||||
|
|
||||||
public LocalAttachmentMessageBody(Uri uri, Application application) {
|
public LocalAttachmentMessageBody(Uri uri, Application application) {
|
||||||
super(uri, application);
|
super(uri, application);
|
||||||
@ -46,4 +46,4 @@ public class LocalAttachmentMessageBody extends LocalAttachmentBody implements C
|
|||||||
}
|
}
|
||||||
mEncoding = encoding;
|
mEncoding = encoding;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2196,4 +2196,4 @@ public class LocalFolder extends Folder implements Serializable {
|
|||||||
throw(MessagingException) e.getCause();
|
throw(MessagingException) e.getCause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ package com.fsck.k9.mail.store.local;
|
|||||||
|
|
||||||
import com.fsck.k9.mail.internet.TextBody;
|
import com.fsck.k9.mail.internet.TextBody;
|
||||||
|
|
||||||
public class LocalTextBody extends TextBody {
|
class LocalTextBody extends TextBody {
|
||||||
/**
|
/**
|
||||||
* This is an HTML-ified version of the message for display purposes.
|
* This is an HTML-ified version of the message for display purposes.
|
||||||
*/
|
*/
|
||||||
@ -17,4 +17,4 @@ public class LocalTextBody extends TextBody {
|
|||||||
return mBodyForDisplay;
|
return mBodyForDisplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
}//LocalTextBody
|
}//LocalTextBody
|
||||||
|
@ -26,4 +26,4 @@ public class TempFileBody extends BinaryAttachmentBody {
|
|||||||
return new ByteArrayInputStream(LocalStore.EMPTY_BYTE_ARRAY);
|
return new ByteArrayInputStream(LocalStore.EMPTY_BYTE_ARRAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,4 +37,4 @@ public class TempFileMessageBody extends TempFileBody implements CompositeBody {
|
|||||||
}
|
}
|
||||||
mEncoding = encoding;
|
mEncoding = encoding;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user