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()); } } }