mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
More logging for the widgets scroll bug
Bug: 160238801 Change-Id: I198aea39ccbb3b4ab6d8696cccc868cf6465b9d2
This commit is contained in:
@@ -120,6 +120,9 @@ public class WidgetsRecyclerView extends BaseRecyclerView implements OnItemTouch
|
||||
public int getCurrentScrollY() {
|
||||
// Skip early if widgets are not bound.
|
||||
if (isModelNotReady() || getChildCount() == 0) {
|
||||
if (Utilities.IS_RUNNING_IN_TEST_HARNESS) {
|
||||
Log.d(TestProtocol.NO_SCROLL_END_WIDGETS, "getCurrentScrollY: -1");
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -128,6 +131,10 @@ public class WidgetsRecyclerView extends BaseRecyclerView implements OnItemTouch
|
||||
int y = (child.getMeasuredHeight() * rowIndex);
|
||||
int offset = getLayoutManager().getDecoratedTop(child);
|
||||
|
||||
if (Utilities.IS_RUNNING_IN_TEST_HARNESS) {
|
||||
Log.d(TestProtocol.NO_SCROLL_END_WIDGETS,
|
||||
"getCurrentScrollY: " + (getPaddingTop() + y - offset));
|
||||
}
|
||||
return getPaddingTop() + y - offset;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user