mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05: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:
parent
96b93f7327
commit
a826f33eb3
@ -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;
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user