mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Avoid seeing ClearAllButton for overview grid's snap position" into sc-v2-dev
This commit is contained in:
@@ -3756,8 +3756,8 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
||||
TaskView taskView = getTaskViewAt(i);
|
||||
float scrollDiff = taskView.getScrollAdjustment(showAsFullscreen, showAsGrid);
|
||||
int pageScroll = newPageScrolls[i + mTaskViewStartIndex] + (int) scrollDiff;
|
||||
if ((mIsRtl && pageScroll < clearAllScroll)
|
||||
|| (!mIsRtl && pageScroll > clearAllScroll)) {
|
||||
if ((mIsRtl && pageScroll < clearAllScroll + clearAllWidth)
|
||||
|| (!mIsRtl && pageScroll > clearAllScroll - clearAllWidth)) {
|
||||
pageScroll = clearAllScroll + (mIsRtl ? clearAllWidth : -clearAllWidth);
|
||||
}
|
||||
if (outPageScrolls[i] != pageScroll) {
|
||||
|
||||
Reference in New Issue
Block a user