1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00
This commit is contained in:
Jesse Vincent 2011-01-06 16:55:08 +00:00
parent aa0eeac736
commit de806f7715
16 changed files with 1880 additions and 970 deletions

View File

@ -702,7 +702,8 @@ public class Account implements BaseAccount
}
public ColorChip generateColorChip() {
public ColorChip generateColorChip()
{
return new ColorChip( mChipColor);
}

View File

@ -56,12 +56,15 @@ public class HtmlConverter
private static class HtmlToTextTagHandler implements Html.TagHandler
{
// List of tags whose content should be ignored.
private static final Set<String> TAGS_WITH_IGNORED_CONTENT = Collections.unmodifiableSet(new HashSet<String>() {{
private static final Set<String> TAGS_WITH_IGNORED_CONTENT = Collections.unmodifiableSet(new HashSet<String>()
{
{
add("style");
add("script");
add("title");
add("!"); // comments
}});
}
});
@Override
public void handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader)

View File

@ -4,8 +4,10 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.MalformedInputException;
class Iso2022JpToShiftJisInputStream extends InputStream {
private enum Charset {
class Iso2022JpToShiftJisInputStream extends InputStream
{
private enum Charset
{
ASCII, JISX0201, JISX0208,
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -345,7 +345,8 @@ public class SmtpTransport extends Transport
}
private void sendMessageTo(ArrayList<String> addresses, Message message)
throws MessagingException{
throws MessagingException
{
close();
open();

View File

@ -4,7 +4,8 @@ import android.graphics.Path;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.PathShape;
public class ColorChip {
public class ColorChip
{
private static final Path CHIP_PATH = new Path();
static
@ -22,7 +23,8 @@ public class ColorChip {
private ShapeDrawable mDrawable;
public ColorChip(int color) {
public ColorChip(int color)
{
mDrawable = new ShapeDrawable(new PathShape(CHIP_PATH, 10, 10));
mDrawable.getPaint().setColor(color);
@ -30,7 +32,8 @@ public class ColorChip {
}
public ShapeDrawable drawable () {
public ShapeDrawable drawable ()
{
return mDrawable;
}

View File

@ -20,7 +20,8 @@ import java.lang.reflect.Method;
* Time: 3:57 PM
* To change this template use File | Settings | File Templates.
*/
public class MessageWebView extends WebView {
public class MessageWebView extends WebView
{
/**
* We use WebSettings.getBlockNetworkLoads() to prevent the WebView that displays email