Skip to content

Commit

Permalink
Remove last use of deprecated AmountInputFormatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
rivaldi8 committed Apr 18, 2016
1 parent 07756f3 commit cbfb3cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import org.gnucash.android.model.Price;
import org.gnucash.android.ui.transaction.TransactionFormFragment;
import org.gnucash.android.ui.transaction.TransactionsActivity;
import org.gnucash.android.ui.util.AmountInputFormatter;
import org.gnucash.android.ui.util.OnTransferFundsListener;

import java.math.BigDecimal;
Expand Down Expand Up @@ -135,7 +134,6 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa

mExchangeRateInput.addTextChangedListener(textChangeListener);
mConvertedAmountInput.addTextChangedListener(textChangeListener);
mConvertedAmountInput.addTextChangedListener(new AmountInputFormatter(mConvertedAmountInput));

mConvertedAmountRadioButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
Expand Down

This file was deleted.

3 changes: 3 additions & 0 deletions app/src/main/res/layout/dialog_transfer_funds.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,13 @@
android:layout_width="0dp"
android:layout_weight="2"
android:layout_height="wrap_content">
<!-- FIXME: make android:digits locale independent -->
<EditText android:id="@+id/input_converted_amount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:digits="0123456789.,"
android:imeOptions="actionDone"
android:hint="@string/hint_converted_amount">
<requestFocus />
</EditText>
Expand Down

0 comments on commit cbfb3cc

Please sign in to comment.