Improve query to obtain user balances to avoid showing assets with a balance equal to zero.
This commit is contained in:
parent
2db74516bb
commit
10014263d7
2 changed files with 2 additions and 2 deletions
|
@ -7,6 +7,6 @@ import androidx.room.Query
|
|||
@Dao
|
||||
interface BalanceDetailDao {
|
||||
@Query("SELECT assets.id AS id, balances.asset_amount AS amount, assets.precision, assets.symbol " +
|
||||
"FROM balances INNER JOIN assets on balances.asset_id = assets.id")
|
||||
"FROM balances INNER JOIN assets on balances.asset_id = assets.id WHERE balances.asset_amount > 0")
|
||||
fun getAll(): LiveData<List<BalanceDetail>>
|
||||
}
|
|
@ -68,7 +68,7 @@ class HomeFragment : Fragment() {
|
|||
// Navigate to the Send Transaction Fragment using Navigation's SafeArgs to activate the camera
|
||||
fabSendTransactionCamera.setOnClickListener {
|
||||
val action = HomeFragmentDirections.sendActionCamera()
|
||||
action.setOpenCamera(true)
|
||||
action.openCamera = true
|
||||
findNavController().navigate(action)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue