Begone, foul keyboard!

Hide keyboard when advancing setup screens

b/13640446

Change-Id: I913a6afe9bcd4864bf218cab59a3d9e84b23f7d9
This commit is contained in:
Tony Mantler 2014-03-28 11:19:49 -07:00
parent 0f151d5fb5
commit ca7df3f234

View File

@ -36,6 +36,8 @@ import android.database.Cursor;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.text.TextUtils;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Toast;
import com.android.email.R;
@ -472,6 +474,12 @@ public class AccountSetupFinal extends AccountSetupActivity
ft.addToBackStack(backstackTag);
}
ft.commit();
final InputMethodManager imm =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
final View fragment_container = findViewById(R.id.setup_fragment_container);
imm.hideSoftInputFromWindow(fragment_container.getWindowToken(),
0 /* flags: always hide */);
}
/**