From 627bd35500f49373881b44ad52cd48899ea09e97 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 5 Mar 2021 10:56:54 +0100 Subject: [PATCH] Fixed folder ID generation --- .../java/de/danoeh/antennapod/core/storage/NavDrawerData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/NavDrawerData.java b/core/src/main/java/de/danoeh/antennapod/core/storage/NavDrawerData.java index ce497834d..03336b369 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/NavDrawerData.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/NavDrawerData.java @@ -61,7 +61,7 @@ public class NavDrawerData { public boolean isOpen; public FolderDrawerItem(String name) { - super(DrawerItem.Type.FOLDER, name.hashCode() & ~0xFFF); // Drop lower 12 bits for item ids + super(DrawerItem.Type.FOLDER, (long) name.hashCode() << 32); this.name = name; }