Bug 718904 - Don't show a context menu for long taps on header rows in the awesome screen. r=lucasr

This commit is contained in:
Wes Johnston 2012-01-25 08:58:16 -08:00
Родитель cc0839ce13
Коммит 249a23d926
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -405,6 +405,11 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
ExpandableListView exList = (ExpandableListView)list; ExpandableListView exList = (ExpandableListView)list;
int childPosition = ExpandableListView.getPackedPositionChild(info.packedPosition); int childPosition = ExpandableListView.getPackedPositionChild(info.packedPosition);
int groupPosition = ExpandableListView.getPackedPositionGroup(info.packedPosition); int groupPosition = ExpandableListView.getPackedPositionGroup(info.packedPosition);
// Check if long tap is on a header row
if (groupPosition < 0 || childPosition < 0)
return;
selectedItem = exList.getExpandableListAdapter().getChild(groupPosition, childPosition); selectedItem = exList.getExpandableListAdapter().getChild(groupPosition, childPosition);
Map map = (Map)selectedItem; Map map = (Map)selectedItem;