mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Fixing issue where holographic icons could get out of sync in AllApps (when number of pages changes).
Change-Id: I1a63d4837c5b726a90229430f5fc698aa1db5550
This commit is contained in:
@@ -165,4 +165,26 @@ public class PagedViewCellLayoutChildren extends ViewGroup {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void loadHolographicOutlines() {
|
||||
int count = getChildCount();
|
||||
for (int i = 0; i < count; i++) {
|
||||
View view = getChildAt(i);
|
||||
if (view instanceof PagedViewIcon) {
|
||||
PagedViewIcon icon = (PagedViewIcon) view;
|
||||
icon.loadHolographicIcon();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void clearHolographicOutlines() {
|
||||
int count = getChildCount();
|
||||
for (int i = 0; i < count; i++) {
|
||||
View view = getChildAt(i);
|
||||
if (view instanceof PagedViewIcon) {
|
||||
PagedViewIcon icon = (PagedViewIcon) view;
|
||||
icon.clearHolographicIcon();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user