зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1261527 - Long-press on smartfolder. r=sebastian
MozReview-Commit-ID: JPkELM3mtWW --HG-- extra : rebase_source : c8b5624f687041278e9a17420ea9c0cb276af58f
This commit is contained in:
Родитель
e0fe2fe0e9
Коммит
1dff2f7146
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче