mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-04 08:35:08 -05:00
astyle
This commit is contained in:
parent
aa0eeac736
commit
de806f7715
@ -702,7 +702,8 @@ public class Account implements BaseAccount
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public ColorChip generateColorChip() {
|
public ColorChip generateColorChip()
|
||||||
|
{
|
||||||
return new ColorChip( mChipColor);
|
return new ColorChip( mChipColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,12 +56,15 @@ public class HtmlConverter
|
|||||||
private static class HtmlToTextTagHandler implements Html.TagHandler
|
private static class HtmlToTextTagHandler implements Html.TagHandler
|
||||||
{
|
{
|
||||||
// List of tags whose content should be ignored.
|
// 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("style");
|
||||||
add("script");
|
add("script");
|
||||||
add("title");
|
add("title");
|
||||||
add("!"); // comments
|
add("!"); // comments
|
||||||
}});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader)
|
public void handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader)
|
||||||
|
@ -4,8 +4,10 @@ import java.io.IOException;
|
|||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.nio.charset.MalformedInputException;
|
import java.nio.charset.MalformedInputException;
|
||||||
|
|
||||||
class Iso2022JpToShiftJisInputStream extends InputStream {
|
class Iso2022JpToShiftJisInputStream extends InputStream
|
||||||
private enum Charset {
|
{
|
||||||
|
private enum Charset
|
||||||
|
{
|
||||||
ASCII, JISX0201, JISX0208,
|
ASCII, JISX0201, JISX0208,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -345,7 +345,8 @@ public class SmtpTransport extends Transport
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void sendMessageTo(ArrayList<String> addresses, Message message)
|
private void sendMessageTo(ArrayList<String> addresses, Message message)
|
||||||
throws MessagingException{
|
throws MessagingException
|
||||||
|
{
|
||||||
close();
|
close();
|
||||||
open();
|
open();
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@ import android.graphics.Path;
|
|||||||
import android.graphics.drawable.ShapeDrawable;
|
import android.graphics.drawable.ShapeDrawable;
|
||||||
import android.graphics.drawable.shapes.PathShape;
|
import android.graphics.drawable.shapes.PathShape;
|
||||||
|
|
||||||
public class ColorChip {
|
public class ColorChip
|
||||||
|
{
|
||||||
private static final Path CHIP_PATH = new Path();
|
private static final Path CHIP_PATH = new Path();
|
||||||
|
|
||||||
static
|
static
|
||||||
@ -22,7 +23,8 @@ public class ColorChip {
|
|||||||
|
|
||||||
private ShapeDrawable mDrawable;
|
private ShapeDrawable mDrawable;
|
||||||
|
|
||||||
public ColorChip(int color) {
|
public ColorChip(int color)
|
||||||
|
{
|
||||||
|
|
||||||
mDrawable = new ShapeDrawable(new PathShape(CHIP_PATH, 10, 10));
|
mDrawable = new ShapeDrawable(new PathShape(CHIP_PATH, 10, 10));
|
||||||
mDrawable.getPaint().setColor(color);
|
mDrawable.getPaint().setColor(color);
|
||||||
@ -30,7 +32,8 @@ public class ColorChip {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public ShapeDrawable drawable () {
|
public ShapeDrawable drawable ()
|
||||||
|
{
|
||||||
|
|
||||||
return mDrawable;
|
return mDrawable;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,8 @@ import java.lang.reflect.Method;
|
|||||||
* Time: 3:57 PM
|
* Time: 3:57 PM
|
||||||
* To change this template use File | Settings | File Templates.
|
* 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
|
* We use WebSettings.getBlockNetworkLoads() to prevent the WebView that displays email
|
||||||
|
Loading…
Reference in New Issue
Block a user