Hide keyboard

This commit is contained in:
Margaux Clerc 2015-08-05 11:19:30 +02:00
parent 4da9480656
commit 023d7844f0

View file

@ -35,6 +35,7 @@ import android.preference.Preference.OnPreferenceClickListener;
import android.preference.PreferenceCategory; import android.preference.PreferenceCategory;
import android.preference.PreferenceScreen; import android.preference.PreferenceScreen;
import android.text.InputType; import android.text.InputType;
import android.view.WindowManager;
/** /**
* @author Sylvain Berfini * @author Sylvain Berfini
@ -66,6 +67,8 @@ public class AccountPreferencesFragment extends PreferencesListFragment {
manageAccountPreferencesFields(screen); manageAccountPreferencesFields(screen);
} }
// Force hide keyboard
getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
} }
public static boolean isEditTextEmpty(String s){ public static boolean isEditTextEmpty(String s){