From: Damyan Ivanov Date: Sun, 17 Nov 2019 17:18:04 +0000 (+0200) Subject: NT hint boserver: use setHint(resource) when no hint is given X-Git-Tag: v0.11.0~56 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=ff5f525dfd1b1f1d862a29805b0a897c0987e6f1;p=mobile-ledger.git NT hint boserver: use setHint(resource) when no hint is given instead of fetching the resource value --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java index 68ae8ef9..1d323a5b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java @@ -196,9 +196,9 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder syncingData = true; try { if (hint == null) - hint = tvAmount.getResources() - .getString(R.string.zero_amount); - tvAmount.setHint(hint); + tvAmount.setHint(R.string.zero_amount); + else + tvAmount.setHint(hint); } finally { syncingData = false;