]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java
fixed last couple of glitchs when adding transaction via an app shortcut with the...
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / LedgerTransaction.java
index 689d619a694d2d15ae0d5ea6a110aa1e8fcf3b30..8e16408ff18c69abc73d693fa18734b642c18194 100644 (file)
@@ -57,8 +57,8 @@ public class LedgerTransaction {
             throws ParseException {
         this(id, Globals.parseLedgerDate(dateString), description);
     }
             throws ParseException {
         this(id, Globals.parseLedgerDate(dateString), description);
     }
-    public LedgerTransaction(Integer id, Date date, String description) {
-        this.profile = Data.profile.get().getUuid();
+    public LedgerTransaction(Integer id, Date date, String description, MobileLedgerProfile profile) {
+        this.profile = profile.getUuid();
         this.id = id;
         this.date = date;
         this.description = description;
         this.id = id;
         this.date = date;
         this.description = description;
@@ -66,6 +66,9 @@ public class LedgerTransaction {
         this.dataHash = null;
         dataLoaded = false;
     }
         this.dataHash = null;
         dataLoaded = false;
     }
+    public LedgerTransaction(Integer id, Date date, String description) {
+        this(id, date, description, Data.profile.get());
+    }
     public LedgerTransaction(Date date, String description) {
         this(null, date, description);
     }
     public LedgerTransaction(Date date, String description) {
         this(null, date, description);
     }