Loading app/ui/src/main/java/com/fsck/k9/ui/K9Drawer.kt +10 −3 Original line number Diff line number Diff line Loading @@ -241,12 +241,19 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) { val displayFolder = folders[i] val folder = displayFolder.folder val drawerId = folder.id shl DRAWER_FOLDER_SHIFT drawer.addItemAtPosition(PrimaryDrawerItem() val drawerItem = PrimaryDrawerItem() .withIcon(getFolderIcon(folder)) .withIdentifier(drawerId) .withTag(folder) .withName(getFolderDisplayName(folder)), headerItemCount) .withName(getFolderDisplayName(folder)) val unreadCount = displayFolder.unreadCount if (unreadCount > 0) { drawerItem.withBadge(unreadCount.toString()) } drawer.addItemAtPosition(drawerItem, headerItemCount) userFolderDrawerIds.add(drawerId) Loading Loading
app/ui/src/main/java/com/fsck/k9/ui/K9Drawer.kt +10 −3 Original line number Diff line number Diff line Loading @@ -241,12 +241,19 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) { val displayFolder = folders[i] val folder = displayFolder.folder val drawerId = folder.id shl DRAWER_FOLDER_SHIFT drawer.addItemAtPosition(PrimaryDrawerItem() val drawerItem = PrimaryDrawerItem() .withIcon(getFolderIcon(folder)) .withIdentifier(drawerId) .withTag(folder) .withName(getFolderDisplayName(folder)), headerItemCount) .withName(getFolderDisplayName(folder)) val unreadCount = displayFolder.unreadCount if (unreadCount > 0) { drawerItem.withBadge(unreadCount.toString()) } drawer.addItemAtPosition(drawerItem, headerItemCount) userFolderDrawerIds.add(drawerId) Loading