1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Remove unused 'check mark' color chip

This commit is contained in:
cketti 2014-09-12 06:26:03 +02:00
parent b31660c63e
commit 3e4beae631
2 changed files with 3 additions and 24 deletions

View File

@ -221,7 +221,6 @@ public class Account implements BaseAccount {
private ColorChip mFlaggedUnreadColorChip; private ColorChip mFlaggedUnreadColorChip;
private ColorChip mFlaggedReadColorChip; private ColorChip mFlaggedReadColorChip;
private ColorChip mCheckmarkChip;
/** /**
@ -862,11 +861,6 @@ public class Account implements BaseAccount {
mUnreadColorChip = new ColorChip(mChipColor, false, ColorChip.CIRCULAR); mUnreadColorChip = new ColorChip(mChipColor, false, ColorChip.CIRCULAR);
mFlaggedReadColorChip = new ColorChip(mChipColor, true, ColorChip.STAR); mFlaggedReadColorChip = new ColorChip(mChipColor, true, ColorChip.STAR);
mFlaggedUnreadColorChip = new ColorChip(mChipColor, false, ColorChip.STAR); mFlaggedUnreadColorChip = new ColorChip(mChipColor, false, ColorChip.STAR);
mCheckmarkChip = new ColorChip(mChipColor, true, ColorChip.CHECKMARK);
}
public ColorChip getCheckmarkChip() {
return mCheckmarkChip;
} }
public synchronized int getChipColor() { public synchronized int getChipColor() {
@ -895,10 +889,6 @@ public class Account implements BaseAccount {
return chip; return chip;
} }
public ColorChip generateColorChip() {
return new ColorChip(mChipColor, false, ColorChip.CIRCULAR);
}
@Override @Override
public String getUuid() { public String getUuid() {
return mUuid; return mUuid;

View File

@ -12,7 +12,6 @@ public class ColorChip {
public static final Path RIGHT_POINTING = new Path(); public static final Path RIGHT_POINTING = new Path();
public static final Path RIGHT_NOTCH = new Path(); public static final Path RIGHT_NOTCH = new Path();
public static final Path STAR = new Path(); public static final Path STAR = new Path();
public static final Path CHECKMARK = new Path();
static { static {
@ -47,12 +46,6 @@ public class ColorChip {
STAR.lineTo(110f,110f); STAR.lineTo(110f,110f);
STAR.lineTo(140f,60f); STAR.lineTo(140f,60f);
STAR.close(); STAR.close();
CHECKMARK.moveTo(10f,160f);
CHECKMARK.lineTo(120f,280f);
CHECKMARK.lineTo(300f,40f);
} }
private ShapeDrawable mDrawable; private ShapeDrawable mDrawable;
@ -66,11 +59,7 @@ public class ColorChip {
} else { } else {
mDrawable = new ShapeDrawable(new PathShape(shape, 320f, 320f)); mDrawable = new ShapeDrawable(new PathShape(shape, 320f, 320f));
} }
if (shape.equals(CHECKMARK)) {
mDrawable.getPaint().setStrokeWidth(50);
} else {
mDrawable.getPaint().setStrokeWidth(20);
}
if (messageRead) { if (messageRead) {
// Read messages get an outlined circle // Read messages get an outlined circle
mDrawable.getPaint().setStyle(Paint.Style.STROKE); mDrawable.getPaint().setStyle(Paint.Style.STROKE);
@ -79,9 +68,9 @@ public class ColorChip {
mDrawable.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); mDrawable.getPaint().setStyle(Paint.Style.FILL_AND_STROKE);
} }
mDrawable.getPaint().setStrokeWidth(20);
mDrawable.getPaint().setColor(color); mDrawable.getPaint().setColor(color);
} }
public ShapeDrawable drawable() { public ShapeDrawable drawable() {