Reply-all migration
Bug: 8546815 Change-Id: I6b41aee84f0e1dfdbed4b7b2e843b6268659ee20
This commit is contained in:
parent
71737836e6
commit
4994e7ca50
@ -57,6 +57,8 @@ public class Preferences {
|
||||
@Deprecated
|
||||
private static final String SWIPE_DELETE = "swipe_delete";
|
||||
private static final String CONV_LIST_ICON = "conversation_list_icons";
|
||||
@Deprecated
|
||||
private static final String REPLY_ALL = "reply_all";
|
||||
|
||||
public static final int AUTO_ADVANCE_NEWER = 0;
|
||||
public static final int AUTO_ADVANCE_OLDER = 1;
|
||||
@ -233,6 +235,18 @@ public class Preferences {
|
||||
return mSharedPreferences.getBoolean(SWIPE_DELETE, false);
|
||||
}
|
||||
|
||||
/** @deprecated Only used for migration */
|
||||
@Deprecated
|
||||
public boolean hasReplyAll() {
|
||||
return mSharedPreferences.contains(REPLY_ALL);
|
||||
}
|
||||
|
||||
/** @deprecated Only used for migration */
|
||||
@Deprecated
|
||||
public boolean getReplyAll() {
|
||||
return mSharedPreferences.getBoolean(REPLY_ALL, false);
|
||||
}
|
||||
|
||||
public int getTextZoom() {
|
||||
return mSharedPreferences.getInt(TEXT_ZOOM, TEXT_ZOOM_DEFAULT);
|
||||
}
|
||||
|
@ -78,6 +78,15 @@ public class PreferenceMigrator extends BasePreferenceMigrator {
|
||||
mailPrefs.setConversationListSwipeEnabled(swipeDelete);
|
||||
}
|
||||
|
||||
// Move reply-all setting
|
||||
@SuppressWarnings("deprecation")
|
||||
final boolean isReplyAllSet = preferences.hasReplyAll();
|
||||
if (isReplyAllSet) {
|
||||
@SuppressWarnings("deprecation")
|
||||
final boolean replyAll = preferences.getReplyAll();
|
||||
mailPrefs.setDefaultReplyAll(replyAll);
|
||||
}
|
||||
|
||||
// Move folder notification settings
|
||||
for (final Account account : accounts) {
|
||||
// The only setting in AccountPreferences so far is a global notification toggle,
|
||||
|
Loading…
Reference in New Issue
Block a user