From 384803076dbd154a8463771c1848468d5c66abe5 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 15 May 2010 20:35:47 +0000 Subject: [PATCH] When instantiating an account, set the default color to something random, rather than blank, so that new accounts don't endup without colors. --- src/com/fsck/k9/Account.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/Account.java b/src/com/fsck/k9/Account.java index bed2b4192..354dda91b 100644 --- a/src/com/fsck/k9/Account.java +++ b/src/com/fsck/k9/Account.java @@ -133,7 +133,7 @@ public class Account implements BaseAccount mExpungePolicy = EXPUNGE_IMMEDIATELY; mAutoExpandFolderName = "INBOX"; mMaxPushFolders = 10; - mChipColor = 0; + mChipColor = (new Random()).nextInt(0xffffff) + 0xff000000; goToUnreadMessageSearch = false; searchableFolders = Searchable.ALL;