Bug 790897 - Capture clicks on find in page bar to prevent them from leaking into TabsTray. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-09-25 13:43:55 -07:00
Родитель c596790a8c
Коммит c2a45528df
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -35,6 +35,10 @@ public class FindInPageBar extends RelativeLayout implements TextWatcher, View.O
content.findViewById(R.id.find_next).setOnClickListener(this);
content.findViewById(R.id.find_close).setOnClickListener(this);
// Capture clicks on the rest of the view to prevent them from
// leaking into other views positioned below.
content.setOnClickListener(this);
mFindText = (CustomEditText) content.findViewById(R.id.find_text);
mFindText.addTextChangedListener(this);
mFindText.setOnKeyPreImeListener(new CustomEditText.OnKeyPreImeListener() {