mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Fixing small regression in PageIndicators add page, fixing NPE (Bug 10779956)
Change-Id: I7ff711c6fc97987efc57bf023913e33e31ccf140
This commit is contained in:
@@ -186,6 +186,11 @@ public class PageIndicator extends LinearLayout {
|
||||
}
|
||||
}
|
||||
|
||||
void updateMarker(int index, PageMarkerResources marker) {
|
||||
PageIndicatorMarker m = mMarkers.get(index);
|
||||
m.setMarkerDrawables(marker.activeId, marker.inactiveId);
|
||||
}
|
||||
|
||||
void removeMarker(int index, boolean allowAnimations) {
|
||||
if (mMarkers.size() > 0) {
|
||||
index = Math.max(0, Math.min(mMarkers.size() - 1, index));
|
||||
|
||||
Reference in New Issue
Block a user