-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Summary:
This was the buggy code I used for this purpose, but should be implemented in a more proper way. Sharing this code piece just to give the idea:
displayedLabels.remove(label);
displayedLabels.add(selectedLabels.size()-1, label);
notifyDataSetChanged();
smoothScroller.setTargetPosition(0);
recyclerView.getLayoutManager().startSmoothScroll(smoothScroller);
Steps to reproduce:
When you select place types they stay where they are:

Ideally the list should be resorted and they should be displayed at the top, and we should make user jump to top after each selection (this behavior is open to discussion, maybe there is no need for this improvement at all. Maybe this is not an improvement already and we should close this issue, please comment) Here is (maybe) expected behavior:

Screen-shots:
Can be created by pressing the Volume Down and Power Button at the same time on Android 4.0 and higher.
Would you like to work on the issue?
I shared my buggy solution already. first we should decide if this one is really needed or not, then if it is really needed someone else can start to work on it.
