Commit 42a51db0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avoid crash in SearchFragment

It seems weird that this happen, but maybe a race on creation and
onSearchKeyPressed() call
parent 7e2bc7a7
......@@ -224,6 +224,8 @@ public class SearchFragment extends SherlockListFragment {
};
public void onSearchKeyPressed() {
if (mSearchText == null)
return;
mSearchText.requestFocus();
mSearchText.setSelection(mSearchText.getText().length());
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment