question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New methods proposal

See original GitHub issue

Add a your comment to propose a new method, explain the reason and the use case where it might be useful. You can also use the +1 or -1 reaction to vote.

  • void clear()
  • void clearAllBut(Integer... viewTypes)
  • boolean shouldNotifyParentOnClick()

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davideascommented, Jan 13, 2017

For removing selected items, you can call directly removeAllSelectedItems(), so you don’t need to call remove one by one. If you use the new UndoHelper you will need to pass the positions, too. Having the undo enabled it gives you access to the getDeletedItems().

When removing items from your original list / DB, you might have to do some additional operations, and you probably want to cast to your object (CustomObj) mAdapter.getItem(position) (if the generic was set with abstract type) when you cycle getSelectedPositions(). Finally, if I create a cycle for getting items from positions, you then probably will cycle again the list. So I won’t create getSelectedItems.

0reactions
inorichicommented, Jan 13, 2017

Oops, I was looking for a *Items method and totally overlooked the updateDataSet method (probably because it had a different meaning in 0.4.2). Sorry for not investigating enough.

For getSelectedItems, I’m doing that. When multiple items are going to be deleted in multi selection mode, I map the positions to the items, and call a method in my presenter to delete those objects passed as parameter.

About my issue, I’ll try to give it some more thought before adding further noise here.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Q: How do I write the methods section of a research proposal?
Answer: The methods section of a research proposal contains details about how you will conduct your research. It includes your study design - ......
Read more >
Proposal for new Set methods in JS - GitHub
Set Methods for JavaScript. This is a proposal to add methods like union and intersection to JavaScript's built-in Set class. It is currently...
Read more >
How to write a research proposal? - PMC - NCBI - NIH
The proposal is a detailed plan or 'blueprint' for the intended study, and once it is completed, the research project should flow smoothly....
Read more >
Proposal of a new method for effectiveness evaluation in the ...
This paper addresses the subject of product design process evaluation from the designer's point of view. Based on the results of a preliminary...
Read more >
Outline for Research Proposal - Portland State University
Outline for Research Project Proposal ... You are not required to come up with a new or original method (though you can try!)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found