Avoid some instances of autoboxing
This will hopefully allow us to compile with "Android Java IDE".
This commit is contained in:
parent
a089fadd9a
commit
4721d92e79
2 changed files with 13 additions and 7 deletions
|
@ -2427,19 +2427,19 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||
updateFrom();
|
||||
|
||||
Integer bodyLength = k9identity.get(IdentityField.LENGTH) != null
|
||||
? Integer.parseInt(k9identity.get(IdentityField.LENGTH))
|
||||
? Integer.valueOf(k9identity.get(IdentityField.LENGTH))
|
||||
: 0;
|
||||
Integer bodyOffset = k9identity.get(IdentityField.OFFSET) != null
|
||||
? Integer.parseInt(k9identity.get(IdentityField.OFFSET))
|
||||
? Integer.valueOf(k9identity.get(IdentityField.OFFSET))
|
||||
: 0;
|
||||
Integer bodyFooterOffset = k9identity.get(IdentityField.FOOTER_OFFSET) != null
|
||||
? Integer.parseInt(k9identity.get(IdentityField.FOOTER_OFFSET))
|
||||
? Integer.valueOf(k9identity.get(IdentityField.FOOTER_OFFSET))
|
||||
: null;
|
||||
Integer bodyPlainLength = k9identity.get(IdentityField.PLAIN_LENGTH) != null
|
||||
? Integer.parseInt(k9identity.get(IdentityField.PLAIN_LENGTH))
|
||||
? Integer.valueOf(k9identity.get(IdentityField.PLAIN_LENGTH))
|
||||
: null;
|
||||
Integer bodyPlainOffset = k9identity.get(IdentityField.PLAIN_OFFSET) != null
|
||||
? Integer.parseInt(k9identity.get(IdentityField.PLAIN_OFFSET))
|
||||
? Integer.valueOf(k9identity.get(IdentityField.PLAIN_OFFSET))
|
||||
: null;
|
||||
mQuoteStyle = k9identity.get(IdentityField.QUOTE_STYLE) != null
|
||||
? QuoteStyle.valueOf(k9identity.get(IdentityField.QUOTE_STYLE))
|
||||
|
|
|
@ -629,7 +629,7 @@ public class MessagingController implements Runnable {
|
|||
Log.i(K9.LOG_TAG, "searchLocalMessages ("
|
||||
+ "accountUuids=" + Utility.combine(accountUuids, ',')
|
||||
+ ", folderNames = " + Utility.combine(folderNames, ',')
|
||||
+ ", messages.size() = " + (messages != null ? messages.length : null)
|
||||
+ ", messages.size() = " + (messages != null ? messages.length : -1)
|
||||
+ ", query = " + query
|
||||
+ ", integrate = " + integrate
|
||||
+ ", requiredFlags = " + Utility.combine(requiredFlags, ',')
|
||||
|
@ -4182,7 +4182,13 @@ public class MessagingController implements Runnable {
|
|||
|
||||
NotificationSetting n = account.getNotificationSetting();
|
||||
|
||||
configureNotification(notif, (n.shouldRing() ? n.getRingtone() : null), (n.shouldVibrate() ? n.getVibration() : null), (n.isLed() ? n.getLedColor() : null), K9.NOTIFICATION_LED_BLINK_SLOW, ringAndVibrate);
|
||||
configureNotification(
|
||||
notif,
|
||||
(n.shouldRing()) ? n.getRingtone() : null,
|
||||
(n.shouldVibrate()) ? n.getVibration() : null,
|
||||
(n.isLed()) ? Integer.valueOf(n.getLedColor()) : null,
|
||||
K9.NOTIFICATION_LED_BLINK_SLOW,
|
||||
ringAndVibrate);
|
||||
|
||||
notifMgr.notify(account.getAccountNumber(), notif);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue