1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

find src/com/fsck/ -name \*.java|xargs astyle --style=ansi

--mode=java --indent-switches --indent=spaces=4 --convert-tabs
--unpad=paren
This commit is contained in:
Jesse Vincent 2010-07-06 10:29:26 +00:00
parent 96b93f7327
commit a826f33eb3
12 changed files with 153 additions and 141 deletions

View File

@ -4636,28 +4636,40 @@ public class MessagingController implements Runnable
if (account.isVibrate())
{
int times = account.getVibrateTimes();
long[] pattern1 = new long[]{100,200};
long[] pattern2 = new long[]{100,500};
long[] pattern3 = new long[]{200,200};
long[] pattern4 = new long[]{200,500};
long[] pattern5 = new long[]{500,500};
long[] pattern1 = new long[] {100,200};
long[] pattern2 = new long[] {100,500};
long[] pattern3 = new long[] {200,200};
long[] pattern4 = new long[] {200,500};
long[] pattern5 = new long[] {500,500};
long[] src = null;
switch (account.getVibratePattern())
{
case 1: src = pattern1; break;
case 2: src = pattern2; break;
case 3: src = pattern3; break;
case 4: src = pattern4; break;
case 5: src = pattern5; break;
case 1:
src = pattern1;
break;
case 2:
src = pattern2;
break;
case 3:
src = pattern3;
break;
case 4:
src = pattern4;
break;
case 5:
src = pattern5;
break;
default:
notif.defaults |= Notification.DEFAULT_VIBRATE;
break;
}
if (src != null) {
if (src != null)
{
long[] dest = new long[src.length * times];
for (int n = 0; n < times; n++) {
for (int n = 0; n < times; n++)
{
System.arraycopy(src, 0, dest, n * src.length, src.length);
}
notif.vibrate = dest;

View File

@ -1022,7 +1022,7 @@ public class ImapStore extends Store
if (earliestDate != null)
{
dateSearchString.append(" SINCE ");
synchronized(RFC3501_DATE)
synchronized (RFC3501_DATE)
{
dateSearchString.append(RFC3501_DATE.format(earliestDate));
}