1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Don't rely on FolderClass implementation details outside of FolderClass

This commit is contained in:
cketti 2011-01-19 01:50:28 +00:00
parent 7572c7c914
commit bcb1131cb5

View File

@ -1407,9 +1407,10 @@ public class LocalStore extends Store implements Serializable
super.setLastPush(lastPushed);
mInTopGroup = topGroup ==1 ? true : false;
mIntegrate = integrate == 1 ? true : false;
mDisplayClass = Folder.FolderClass.valueOf(displayClass == null?"NO_CLASS":displayClass);
mPushClass = Folder.FolderClass.valueOf(pushClass == null?"NO_CLASS":pushClass);
mSyncClass = Folder.FolderClass.valueOf(syncClass == null?"NO_CLASS":syncClass);
String noClass = FolderClass.NO_CLASS.toString();
mDisplayClass = Folder.FolderClass.valueOf((displayClass == null) ? noClass : displayClass);
mPushClass = Folder.FolderClass.valueOf((pushClass == null) ? noClass : pushClass);
mSyncClass = Folder.FolderClass.valueOf((syncClass == null) ? noClass : syncClass);
}