Skip to content

Commit

Permalink
Keyboard closed while switching between phone number and vpa (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskedCarrot authored Nov 28, 2020
1 parent 6a8a9ed commit 58f53b9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.mifos.mobilewallet.mifospay.qr.ui.ReadQrActivity;
import org.mifos.mobilewallet.mifospay.utils.Constants;
import org.mifos.mobilewallet.mifospay.utils.Toaster;
import org.mifos.mobilewallet.mifospay.utils.Utils;

import javax.inject.Inject;

Expand Down Expand Up @@ -112,6 +113,7 @@ public void onVPASelected() {
btnScanQr.setVisibility(View.VISIBLE);
mRlMobile.setVisibility(View.GONE);
mTilVpa.setVisibility(View.VISIBLE);
Utils.hideSoftKeyboard(getActivity());
}

@OnClick(R.id.btn_mobile)
Expand All @@ -125,6 +127,7 @@ public void onMobileSelected() {
mTilVpa.setVisibility(View.GONE);
btnScanQr.setVisibility(View.GONE);
mRlMobile.setVisibility(View.VISIBLE);
Utils.hideSoftKeyboard(getActivity());
}

@OnClick(R.id.btn_submit)
Expand Down

0 comments on commit 58f53b9

Please sign in to comment.