|
@ -175,10 +175,12 @@ public class ExchangeRateCurrencyListingDialog extends DialogFragment implements |
|
|
public void hideKeyboard() { |
|
|
public void hideKeyboard() { |
|
|
// Check if no view has focus: |
|
|
// Check if no view has focus: |
|
|
try { |
|
|
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) |
|
|
catch(Exception ex) |
|
|
{ |
|
|
{ |
|
|