From ff5f525dfd1b1f1d862a29805b0a897c0987e6f1 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 17 Nov 2019 19:18:04 +0200 Subject: [PATCH] NT hint boserver: use setHint(resource) when no hint is given instead of fetching the resource value --- .../mobileledger/ui/activity/NewTransactionItemHolder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5