Fix some typos.
Change-Id: Idd3018a03023efe02c3bcf40b44c8f5a5e304436
This commit is contained in:
parent
006ea81b71
commit
c59103c933
@ -109,7 +109,7 @@ public class ImapService extends Service {
|
|||||||
private static final Flag[] FLAG_LIST_ANSWERED = new Flag[] { Flag.ANSWERED };
|
private static final Flag[] FLAG_LIST_ANSWERED = new Flag[] { Flag.ANSWERED };
|
||||||
|
|
||||||
// Kick idle connection every 25 minutes
|
// Kick idle connection every 25 minutes
|
||||||
private static final int KICK_IDLE_CONNETION_TIMEOUT = 25 * 60 * 1000;
|
private static final int KICK_IDLE_CONNECTION_TIMEOUT = 25 * 60 * 1000;
|
||||||
private static final int ALARM_REQUEST_KICK_IDLE_CODE = 1000;
|
private static final int ALARM_REQUEST_KICK_IDLE_CODE = 1000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -294,7 +294,7 @@ public class ImapService extends Service {
|
|||||||
|
|
||||||
private void scheduleKickIdleConnection() {
|
private void scheduleKickIdleConnection() {
|
||||||
PendingIntent pi = getKickIdleConnectionPendingIntent();
|
PendingIntent pi = getKickIdleConnectionPendingIntent();
|
||||||
long due = System.currentTimeMillis() + KICK_IDLE_CONNETION_TIMEOUT;
|
long due = System.currentTimeMillis() + KICK_IDLE_CONNECTION_TIMEOUT;
|
||||||
AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
|
AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
|
||||||
am.set(AlarmManager.RTC, due, pi);
|
am.set(AlarmManager.RTC, due, pi);
|
||||||
}
|
}
|
||||||
@ -914,8 +914,8 @@ public class ImapService extends Service {
|
|||||||
ImapIdleFolderHolder holder = ImapIdleFolderHolder.getInstance();
|
ImapIdleFolderHolder holder = ImapIdleFolderHolder.getInstance();
|
||||||
holder.kickIdledMailbox(context, mailbox, account);
|
holder.kickIdledMailbox(context, mailbox, account);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogUtils.e(Logging.LOG_TAG,"Failed to kick idled connection "
|
LogUtils.e(Logging.LOG_TAG, e, "Failed to kick idled connection "
|
||||||
+ "for mailbox " + mailboxId, e);
|
+ "for mailbox " + mailboxId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user