зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cc0839ce13
Коммит
249a23d926
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче