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:
parent
7572c7c914
commit
bcb1131cb5
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user