Skip to content

Commit

Permalink
Issue#50 Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan Khanna committed Jul 27, 2014
1 parent 33a280b commit 7fdc13b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
@Override
public void afterTextChanged(Editable s) {

CollectionListAdapter.sRepaymentTransactions.put(loans.get(position).getLoanId(), Double.parseDouble(s.toString()));

try {
CollectionListAdapter.sRepaymentTransactions.put(loans.get(position).getLoanId(), s.toString().equals("")?0.00:Double.parseDouble(s.toString()));
}catch (NumberFormatException e) {
CollectionListAdapter.sRepaymentTransactions.put(loans.get(position).getLoanId(), 0.00);
}
/* TODO Fix Live update of Amounts
CollectionSheetFragment.refreshFragment();
reusableViewHolder.et_amountPaid.requestFocus();
Expand Down

0 comments on commit 7fdc13b

Please sign in to comment.