Merge "Revert line that could wrongly initialize RecentsView scroll" into tm-dev am: 4ee29221df am: 0f3df27b9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18820561 Change-Id: Ifad1dcfe1ed7e826228f5068f7dfa9b89daf834f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
2192ea2b54
1 file changed
+3
-1
@@ -1187,7 +1187,9 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getScrollForPage(int index) {
|
public int getScrollForPage(int index) {
|
||||||
if (!pageScrollsInitialized() || index >= mPageScrolls.length || index < 0) {
|
// TODO(b/233112195): Use !pageScrollsInitialized() instead of mPageScrolls == null, once we
|
||||||
|
// root cause where we should be using runOnPageScrollsInitialized().
|
||||||
|
if (mPageScrolls == null || index >= mPageScrolls.length || index < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return mPageScrolls[index];
|
return mPageScrolls[index];
|
||||||
|
|||||||
Reference in new issue
Block a user