]> git.ktnx.net Git - mobile-ledger.git/commitdiff
Templates: order fallback templates at the bottom of the list
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 2 Mar 2021 16:56:14 +0000 (18:56 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 2 Mar 2021 16:56:14 +0000 (18:56 +0200)
app/src/main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java

index bfc2a562d156d0e795213b7aefc52af98fecbd6d..b14502c7b6e1c58a7f2495377a97c5b7eee00088 100644 (file)
@@ -66,7 +66,7 @@ public abstract class TemplateHeaderDAO {
         });
     }
 
-    @Query("SELECT * FROM templates ORDER BY UPPER(name)")
+    @Query("SELECT * FROM templates ORDER BY is_fallback, UPPER(name)")
     public abstract LiveData<List<TemplateHeader>> getTemplates();
 
     @Query("SELECT * FROM templates WHERE id = :id")