mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
Fixing improper paging of wallpaper providers in customization drawer.
Change-Id: I3f0323f2e97d4538ae9c35e17738bcbb46b5a2a7
This commit is contained in:
@@ -768,7 +768,10 @@ public class CustomizePagedView extends PagedView
|
||||
LinearLayout layout = (LinearLayout) getChildAt(page);
|
||||
layout.removeAllViews();
|
||||
final int count = mWallpaperList.size();
|
||||
for (int i = 0; i < count; ++i) {
|
||||
final int numItemsPerPage = mMaxWidgetsCellHSpan / mWallpaperCellHSpan;
|
||||
final int startIndex = page * numItemsPerPage;
|
||||
final int endIndex = Math.min(count, startIndex + numItemsPerPage);
|
||||
for (int i = startIndex; i < endIndex; ++i) {
|
||||
final ResolveInfo info = mWallpaperList.get(i);
|
||||
|
||||
LinearLayout l = (LinearLayout) mInflater.inflate(
|
||||
|
||||
Reference in New Issue
Block a user