- // Check if a folder with the name already exists.
- val folderExistsCursor = bookmarksDatabaseHelper.getFolder(folderName)
-
- // Enable the create button if the new folder name is not empty and doesn't already exist.
- createButton.isEnabled = folderName.isNotEmpty() && (folderExistsCursor.count == 0)
+ // Enable the create button if the new folder name is not empty.
+ createButton.isEnabled = folderName.isNotEmpty()