]> git.ktnx.net Git - mobile-ledger.git/commitdiff
NT hint boserver: use setHint(resource) when no hint is given
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 Nov 2019 17:18:04 +0000 (19:18 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 Nov 2019 17:18:04 +0000 (19:18 +0200)
instead of fetching the resource value

app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java

index 68ae8ef94cbabc16e151a13c0f003446b6563378..1d323a5b705476d30d0e5392b04c5eb970dc2991 100644 (file)
@@ -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;