Merge "Fix apn can't be updated when pressing back key"

This commit is contained in:
Treehugger Robot
2016-12-09 20:50:39 +00:00
committed by Gerrit Code Review

View File

@@ -771,6 +771,8 @@ public class ApnEditor extends SettingsPreferenceFragment
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
view.setOnKeyListener(this);
view.setFocusableInTouchMode(true);
view.requestFocus();
}
public boolean onKey(View v, int keyCode, KeyEvent event) {