Merge "Correct the page scrolls of the AddDesktopButton" into main
This commit is contained in:
commit
a8b8c7c3eb
2 files changed
+5
-2
No files matched your search
@@ -91,6 +91,9 @@ class AddDesktopButton @JvmOverloads constructor(context: Context, attrs: Attrib
|
||||
}
|
||||
}
|
||||
|
||||
protected fun getScrollAdjustment(showAsGrid: Boolean): Int =
|
||||
if (showAsGrid) gridTranslationX.toInt() else 0
|
||||
|
||||
private fun getBorderBounds(bounds: Rect) {
|
||||
bounds.set(0, 0, width, height)
|
||||
val outlinePadding =
|
||||
|
||||
@@ -6248,8 +6248,8 @@ public abstract class RecentsView<
|
||||
int addDesktopButtonIndex = indexOfChild(mAddDesktopButton);
|
||||
if (addDesktopButtonIndex != -1 && addDesktopButtonIndex < outPageScrolls.length) {
|
||||
outPageScrolls[addDesktopButtonIndex] =
|
||||
newPageScrolls[addDesktopButtonIndex] + Math.round(
|
||||
mAddDesktopButton.getGridTranslationX());
|
||||
newPageScrolls[addDesktopButtonIndex] + mAddDesktopButton.getScrollAdjustment(
|
||||
showAsGrid);
|
||||
}
|
||||
|
||||
int lastTaskScroll = getLastTaskScroll(clearAllScroll, clearAllWidth);
|
||||
|
||||
Reference in new issue
Block a user