Bug 1261527 - Long-press on smartfolder. r=sebastian

MozReview-Commit-ID: JPkELM3mtWW

--HG--
extra : rebase_source : c8b5624f687041278e9a17420ea9c0cb276af58f
This commit is contained in:
Chenxia Liu 2016-04-29 15:59:40 -07:00
Родитель e0fe2fe0e9
Коммит 1dff2f7146
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -225,6 +225,10 @@ public class CombinedHistoryAdapter extends RecyclerView.Adapter<CombinedHistory
@Override
public HomeContextMenuInfo makeContextMenuInfoFromPosition(View view, int position) {
if (position == 0) {
// No context menu for smartfolders.
return null;
}
HomeContextMenuInfo info = new HomeContextMenuInfo(view, position, -1);
historyCursor.moveToPosition(transformAdapterPositionForDataStructure(CombinedHistoryItem.ItemType.HISTORY, position));
return populateHistoryInfoFromCursor(info, historyCursor);