]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java
another step towards surrogate ID db objects
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / ui / account_summary / AccountSummaryAdapter.java
index b8e4c303b588a1f9514763fde3e04f317d6133fb..fa089878d52ec35f6a4a07da9132530b930f112f 100644 (file)
@@ -168,8 +168,8 @@ public class AccountSummaryAdapter
                              .rotation(mAccount.isExpanded() ? 0 : 180);
             model.updateDisplayedAccounts();
 
-            DbOpQueue.add("update accounts set expanded=? where name=? and profile=?",
-                    new Object[]{mAccount.isExpanded(), mAccount.getName(), profile.getUuid()
+            DbOpQueue.add("update accounts set expanded=? where name=? and profile_id=?",
+                    new Object[]{mAccount.isExpanded(), mAccount.getName(), profile.getId()
                     });
 
         }
@@ -192,7 +192,7 @@ public class AccountSummaryAdapter
                 return;
 
             DbOpQueue.add("update accounts set amounts_expanded=? where name=? and profile=?",
-                    new Object[]{mAccount.amountsExpanded(), mAccount.getName(), profile.getUuid()
+                    new Object[]{mAccount.amountsExpanded(), mAccount.getName(), profile.getId()
                     });
 
         }