Fixed folder ID generation

This commit is contained in:
ByteHamster 2021-03-05 10:56:54 +01:00
parent 27c4364e9b
commit 627bd35500
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class NavDrawerData {
public boolean isOpen; public boolean isOpen;
public FolderDrawerItem(String name) { 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; this.name = name;
} }