Browse Source

Keyboard hidden added

master
preyearegmi 6 years ago
parent
commit
9ff9242cff
  1. 10
      app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/exchangecountrylistingdialog/ExchangeRateCurrencyListingDialog.java

10
app/src/main/java/com/gmeremit/online/gmeremittance_native/customwidgets/exchangecountrylistingdialog/ExchangeRateCurrencyListingDialog.java

@ -175,10 +175,12 @@ public class ExchangeRateCurrencyListingDialog extends DialogFragment implements
public void hideKeyboard() {
// Check if no view has focus:
try {
View view = getActivity().getCurrentFocus();
InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
// View view = getActivity().getCurrentFocus();
//
// InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
// inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
getActivity().getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
}
catch(Exception ex)
{

Loading…
Cancel
Save