diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index 315790d57..4a59fe674 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -2308,10 +2308,6 @@ public class EmailProvider extends ContentProvider { AccountColumns.SIGNATURE) .add(UIProvider.AccountColumns.SettingsColumns.SNAP_HEADERS, Integer.toString(UIProvider.SnapHeaderValue.ALWAYS)) - .add(UIProvider.AccountColumns.SettingsColumns.REPLY_BEHAVIOR, - Integer.toString(mailPrefs.getDefaultReplyAll() - ? UIProvider.DefaultReplyBehavior.REPLY_ALL - : UIProvider.DefaultReplyBehavior.REPLY)) .add(UIProvider.AccountColumns.SettingsColumns.CONFIRM_ARCHIVE, "0") .add(UIProvider.AccountColumns.SettingsColumns.CONVERSATION_VIEW_MODE, Integer.toString(UIProvider.ConversationViewMode.UNDEFINED)) @@ -2998,6 +2994,12 @@ public class EmailProvider extends ContentProvider { values.put(UIProvider.AccountColumns.QUICK_RESPONSE_URI, combinedUriString("quickresponse/account", id)); } + if (projectionColumns.contains(UIProvider.AccountColumns.SettingsColumns.REPLY_BEHAVIOR)) { + values.put(UIProvider.AccountColumns.SettingsColumns.REPLY_BEHAVIOR, + mailPrefs.getDefaultReplyAll() + ? UIProvider.DefaultReplyBehavior.REPLY_ALL + : UIProvider.DefaultReplyBehavior.REPLY); + } final StringBuilder sb = genSelect(getAccountListMap(getContext()), uiProjection, values); sb.append(" FROM " + Account.TABLE_NAME + " WHERE " + AccountColumns.ID + "=?");