From 3344527ef66a646215e023e485d158586551ad5e Mon Sep 17 00:00:00 2001 From: PatelVatsalB21 Date: Tue, 16 Mar 2021 17:57:30 +0530 Subject: [PATCH] fix 271: Toast fixed in LoanCoSignerFragment --- .../loancosigner/LoanCoSignerFragment.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanapplication/loancosigner/LoanCoSignerFragment.java b/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanapplication/loancosigner/LoanCoSignerFragment.java index 21f82fc5..4f3759c2 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanapplication/loancosigner/LoanCoSignerFragment.java +++ b/app/src/main/java/org/apache/fineract/ui/online/loanaccounts/loanapplication/loancosigner/LoanCoSignerFragment.java @@ -3,14 +3,15 @@ import android.app.Activity; import android.content.Context; import android.os.Bundle; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; import android.text.TextUtils; import android.view.View; import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView; import android.widget.ImageView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; + import com.stepstone.stepper.Step; import com.stepstone.stepper.VerificationError; @@ -120,11 +121,17 @@ public void hideProgressbar() { @Override public void showNoInternetConnection() { + if (getActivity().getCurrentFocus() != null) { + hideKeyboard(getActivity().getCurrentFocus(), getContext()); + } Toaster.show(rootView, getString(R.string.no_internet_connection)); } @Override public void showError(String message) { + if (getActivity().getCurrentFocus() != null) { + hideKeyboard(getActivity().getCurrentFocus(), getContext()); + } Toaster.show(rootView, getString(R.string.error_loading_customers)); }