Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gallery: optimization of group rebuilding. #450

Open
httpdispatch opened this issue Jun 3, 2013 · 0 comments
Open

Gallery: optimization of group rebuilding. #450

httpdispatch opened this issue Jun 3, 2013 · 0 comments

Comments

@httpdispatch
Copy link
Contributor

Do not rebuild groups if no elements were removed, only build group for newly added items

httpdispatch added a commit to httpdispatch/mobile-android that referenced this issue Jun 4, 2013
photo#449
- GalleryFragment.GalleryAdapterExt: added overridden method
checkNeedToLoadNextPage to return proper results for super item count
and super item position
- EndlessAdapter: added variation of checkNeedToLoadNextPage method with
the count parameter
- ImageFlowUtils.ItemGroupWrapper: added
- ImageFlowUtils: changed field itemGroups type
- ImageFlowUtils: added methdo getSuperItemPositionForGroupPosition
- ImageFlowUtils: modified getGroupItem method to return group list data
from ItemGroupWrapper

photo#450
- GalleryFragment.GalleryAdapterExt: added overridden method
deleteItemAt which notify imageFlowUtils about item deletion
- ImageFlowUtils: added new fields lastUsedWidth and lastIndex
- ImageFlowUtils: extracted method getRatio and replaced occurrences in
the calculateImageHeightResult, buildGroups and getSingleImageView
methods
- ImageFlowUtils: modified buildGroups method to do not repeat group
building work for not modified groups in case items are only appended
- ImageFlowUtils: added new methods onGroupsStructureModified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant