]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/db/Profile.java
rename method to better reflect what it does
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / db / Profile.java
index ebbf6ddacdc7ff0a7820ced94e36a9048d2947fb..56155cc6480c19bd6635a6785dff6029036b25e9 100644 (file)
@@ -34,6 +34,7 @@ import net.ktnx.mobileledger.utils.Misc;
 
 @Entity(tableName = "profiles")
 public class Profile {
+    public static final long NO_PROFILE_ID = 0;
     @ColumnInfo
     @PrimaryKey(autoGenerate = true)
     private long id;
@@ -228,7 +229,7 @@ public class Profile {
 
         TransactionDAO trnDao = DB.get()
                                   .getTransactionDAO();
-        trnDao.deleteSync(trnDao.allForProfileSync(id));
+        trnDao.deleteSync(trnDao.getAllForProfileUnorderedSync(id));
 
         DescriptionHistoryDAO descDao = DB.get()
                                           .getDescriptionHistoryDAO();