Adding outlines to side pages for widgets and wallpaper pages in the customization tray.
Change-Id: Ib2ec5e630c1c861003d0e0b5672ed69ef25c0b47
This commit is contained in:
1 parent
f28958bc00
commit
29d6fea296
9 files changed
+273
-41
No files matched your search
@@ -566,9 +566,15 @@ public abstract class PagedView extends ViewGroup {
|
||||
rightScreen = Math.min(getChildCount() - 1, rightScreen);
|
||||
|
||||
final long drawingTime = getDrawingTime();
|
||||
// Clip to the bounds
|
||||
canvas.save();
|
||||
canvas.clipRect(mScrollX, mScrollY, mScrollX + mRight - mLeft,
|
||||
mScrollY + mBottom - mTop);
|
||||
|
||||
for (int i = leftScreen; i <= rightScreen; i++) {
|
||||
drawChild(canvas, getChildAt(i), drawingTime);
|
||||
}
|
||||
canvas.restore();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user