mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Revert line that could wrongly initialize RecentsView scroll" into tm-dev am: 4ee29221df
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18820561 Change-Id: I8bf00bf9bc97e977f51dc9b184d2058ca3595071 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1187,7 +1187,9 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
|
||||
}
|
||||
|
||||
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;
|
||||
} else {
|
||||
return mPageScrolls[index];
|
||||
|
||||
Reference in New Issue
Block a user