Bug 1041641 - Disable SearchFragment mainView click listener when creating view. r=eedens

This commit is contained in:
Margaret Leibovic 2014-07-22 17:02:23 -07:00
parent b9faa69290
commit 5117d11359
2 changed files with 5 additions and 1 deletions

View File

@ -108,6 +108,11 @@ public class SearchFragment extends Fragment implements AcceptsJumpTaps {
}
});
// Disable the click listener while the fragment is State.WAITING.
// We can't do this in the layout file because the setOnClickListener
// implementation calls setClickable(true).
mainView.setClickable(false);
editText = (ClearableEditText) mainView.findViewById(R.id.auto_complete_edit_text);
editText.setOnClickListener(new View.OnClickListener() {
@Override

View File

@ -8,7 +8,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:clickable="false"
tools:context=".autocomplete.AutoCompleteFragment">
<org.mozilla.search.autocomplete.ClearableEditText