change BigDecimal initialisation for comment cost

This commit is contained in:
Akinwale Ariwodola 2020-06-02 08:57:12 +01:00
parent 9ed8864f23
commit 3d874435c3
2 changed files with 2 additions and 2 deletions

View file

@ -531,7 +531,7 @@ public class ChannelCommentsFragment extends Fragment implements SdkStatusListen
Comment comment = buildPostComment();
// only use 2 decimal places
BigDecimal amount = new BigDecimal(new DecimalFormat(Helper.PLAIN_CURRENCY_FORMAT_PATTERN).format(tipAmount));
BigDecimal amount = new BigDecimal(String.valueOf(tipAmount));
beforePostComment();
CommentCreateWithTipTask task = new CommentCreateWithTipTask(comment, amount, progressPostComment, new CommentCreateWithTipTask.CommentCreateWithTipHandler() {

View file

@ -2911,7 +2911,7 @@ public class FileViewFragment extends BaseFragment implements
Comment comment = buildPostComment();
// only use 2 decimal places
BigDecimal amount = new BigDecimal(new DecimalFormat(Helper.PLAIN_CURRENCY_FORMAT_PATTERN).format(tipAmount));
BigDecimal amount = new BigDecimal(String.valueOf(tipAmount));
beforePostComment();
CommentCreateWithTipTask task = new CommentCreateWithTipTask(comment, amount, progressPostComment, new CommentCreateWithTipTask.CommentCreateWithTipHandler() {