Added long press folder to edit folder color

This commit is contained in:
M66B
2024-05-21 20:05:35 +02:00
parent a95b5cc886
commit 7e74869f8f
3 changed files with 56 additions and 2 deletions

View File

@@ -319,6 +319,9 @@ public interface DaoFolder {
@Query("UPDATE folder SET type = :type WHERE id = :id AND NOT (type IS :type)")
int setFolderType(long id, String type);
@Query("UPDATE folder SET color = :color WHERE id = :id AND NOT (color IS :color)")
int setFolderColor(long id, Integer color);
@Query("UPDATE folder SET inherited_type = :type WHERE id = :id AND NOT (inherited_type IS :type)")
int setFolderInheritedType(long id, String type);