diff options
Diffstat (limited to 'storage/database')
-rw-r--r-- | storage/database/src/main/java/de/danoeh/antennapod/storage/database/DBReader.java | 2 | ||||
-rw-r--r-- | storage/database/src/main/java/de/danoeh/antennapod/storage/database/NavDrawerData.java | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/DBReader.java b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/DBReader.java index 4fdcee987..a6669601e 100644 --- a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/DBReader.java +++ b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/DBReader.java @@ -741,7 +741,7 @@ public final class DBReader { folders.put(tag, folder); } drawerItem.id |= folder.id; - folder.children.add(drawerItem); + folder.getChildren().add(drawerItem); } } List<NavDrawerData.TagDrawerItem> foldersSorted = new ArrayList<>(folders.values()); diff --git a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/NavDrawerData.java b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/NavDrawerData.java index d5856c10a..5be824752 100644 --- a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/NavDrawerData.java +++ b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/NavDrawerData.java @@ -53,7 +53,7 @@ public class NavDrawerData { } public static class TagDrawerItem extends DrawerItem { - public final List<DrawerItem> children = new ArrayList<>(); + private final List<DrawerItem> children = new ArrayList<>(); private final String name; private boolean isOpen; @@ -75,6 +75,10 @@ public class NavDrawerData { isOpen = open; } + public List<DrawerItem> getChildren() { + return children; + } + public int getCounter() { int sum = 0; for (DrawerItem item : children) { |