From fb340d0cba2e6be487e30f9a5670be2dee335ca3 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 15 Oct 2017 20:57:15 -0400 Subject: [PATCH 1/2] 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()); } } } From 82e75661168fc4489308c9b34eb131350776cfbb Mon Sep 17 00:00:00 2001 From: Agorise Date: Mon, 16 Oct 2017 13:45:36 +0300 Subject: [PATCH 2/2] Update LICENSE --- LICENSE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 54b8475..f5e8c7e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -MIT License +MIT License -Copyright (c) 2017 Agorise +Copyright (c) 2017 Agorise, IBC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal