1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -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); super.setLastPush(lastPushed);
mInTopGroup = topGroup ==1 ? true : false; mInTopGroup = topGroup ==1 ? true : false;
mIntegrate = integrate == 1 ? true : false; mIntegrate = integrate == 1 ? true : false;
mDisplayClass = Folder.FolderClass.valueOf(displayClass == null?"NO_CLASS":displayClass); String noClass = FolderClass.NO_CLASS.toString();
mPushClass = Folder.FolderClass.valueOf(pushClass == null?"NO_CLASS":pushClass); mDisplayClass = Folder.FolderClass.valueOf((displayClass == null) ? noClass : displayClass);
mSyncClass = Folder.FolderClass.valueOf(syncClass == null?"NO_CLASS":syncClass); mPushClass = Folder.FolderClass.valueOf((pushClass == null) ? noClass : pushClass);
mSyncClass = Folder.FolderClass.valueOf((syncClass == null) ? noClass : syncClass);
} }