diff --git a/app/src/main/java/com/odysee/app/MainActivity.java b/app/src/main/java/com/odysee/app/MainActivity.java index 202ca4db..801b8b71 100644 --- a/app/src/main/java/com/odysee/app/MainActivity.java +++ b/app/src/main/java/com/odysee/app/MainActivity.java @@ -3246,7 +3246,7 @@ public void onSuccess(List rewards) { Lbryio.updateRewardsLists(rewards); if (Lbryio.totalUnclaimedRewardAmount > 0) { - updateRewardsUsdVale(); + updateRewardsUsdValue(); } } @@ -3257,7 +3257,7 @@ public void onError(Exception error) { task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } - public void updateRewardsUsdVale() { + public void updateRewardsUsdValue() { if (Lbryio.totalUnclaimedRewardAmount > 0) { double usdRewardAmount = Lbryio.totalUnclaimedRewardAmount * Lbryio.LBCUSDRate; } diff --git a/app/src/main/java/com/odysee/app/model/Claim.java b/app/src/main/java/com/odysee/app/model/Claim.java index 06c11834..be0406e5 100644 --- a/app/src/main/java/com/odysee/app/model/Claim.java +++ b/app/src/main/java/com/odysee/app/model/Claim.java @@ -124,6 +124,11 @@ public boolean isFree() { return fee == null || Helper.parseDouble(fee.getAmount(), 0) == 0; } + /** + * Calculates price of claim in LBC once it is converted from USD + * @param usdRate LBC/USD rate + * @return + */ public BigDecimal getActualCost(double usdRate) { if (!(value instanceof StreamMetadata)) { return new BigDecimal(0); diff --git a/app/src/main/res/layout/card_wallet_balance.xml b/app/src/main/res/layout/card_wallet_balance.xml index f6ecc9ec..fc1e84a6 100644 --- a/app/src/main/res/layout/card_wallet_balance.xml +++ b/app/src/main/res/layout/card_wallet_balance.xml @@ -1,9 +1,9 @@ - + android:textFontWeight="300" + android:visibility="gone" + tools:visibility="visible"/> - - -