From fb340d0cba2e6be487e30f9a5670be2dee335ca3 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 15 Oct 2017 20:57:15 -0400 Subject: [PATCH] minor fixes --- .../java/cy/agorise/crystalwallet/dao/CryptoCurrencyDao.java | 2 +- .../java/cy/agorise/crystalwallet/dao/TransactionDao.java | 4 ++-- .../crystalwallet/views/CryptoCoinBalanceViewHolder.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/dao/CryptoCurrencyDao.java b/app/src/main/java/cy/agorise/crystalwallet/dao/CryptoCurrencyDao.java index 30f09a7..f9c36a6 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/dao/CryptoCurrencyDao.java +++ b/app/src/main/java/cy/agorise/crystalwallet/dao/CryptoCurrencyDao.java @@ -19,7 +19,7 @@ public interface CryptoCurrencyDao { @Query("SELECT * FROM crypto_currency") List getAll(); - @Query("SELECT * FROM crypto_currency WHERE id := id") + @Query("SELECT * FROM crypto_currency WHERE id = :id") CryptoCurrency getById(int id); @Insert(onConflict = OnConflictStrategy.REPLACE) diff --git a/app/src/main/java/cy/agorise/crystalwallet/dao/TransactionDao.java b/app/src/main/java/cy/agorise/crystalwallet/dao/TransactionDao.java index bbc8d39..dbe6763 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/dao/TransactionDao.java +++ b/app/src/main/java/cy/agorise/crystalwallet/dao/TransactionDao.java @@ -23,8 +23,8 @@ public interface TransactionDao { @Query("SELECT * FROM crypto_coin_transaction ORDER BY date ASC") LivePagedListProvider transactionsByDate(); - @Query("SELECT * FROM crypto_coin_transaction WHERE account_id := idAccount ORDER BY date ASC") - LiveData> getByIdAccount(long idAccount); + @Query("SELECT * FROM crypto_coin_transaction WHERE account_id = :idAccount ORDER BY date ASC") + LiveData> getByIdAccount(long idAccount); @Insert(onConflict = OnConflictStrategy.REPLACE) public long[] insertTransaction(CryptoCoinTransaction... transactions); diff --git a/app/src/main/java/cy/agorise/crystalwallet/views/CryptoCoinBalanceViewHolder.java b/app/src/main/java/cy/agorise/crystalwallet/views/CryptoCoinBalanceViewHolder.java index a88bfc7..07b9c0b 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/views/CryptoCoinBalanceViewHolder.java +++ b/app/src/main/java/cy/agorise/crystalwallet/views/CryptoCoinBalanceViewHolder.java @@ -34,7 +34,7 @@ public class CryptoCoinBalanceViewHolder extends RecyclerView.ViewHolder { cryptoCoinBalance.setText(""); } else { cryptoCoinName.setText(balance.getCoin().getLabel()); - cryptoCoinBalance.setText(balance.getBalance()); + //cryptoCoinBalance.setText(balance.getBalance()); } } }