Properly compute scroll for Taskbar All Apps.
It was hooked up to Launcher All Apps scroll, which is a separate instance from Taskbar. Test: atest WMShellFlickerTests Fix: 270770472 Change-Id: I14b11c8b5f1143886dd5976a12bba9e4ee66aa96
This commit is contained in:
1 parent
47f2dd6a11
commit
01be7eeb57
7 files changed
+32
-5
No files matched your search
@@ -135,10 +135,15 @@ public final class TaskbarAllAppsController {
|
||||
overlayContext.getDragController().setDisallowLongClick(mDisallowLongClick);
|
||||
}
|
||||
|
||||
|
||||
@VisibleForTesting
|
||||
public int getTaskbarAllAppsTopPadding() {
|
||||
// Allow null-pointer since this should only be null if the apps view is not showing.
|
||||
return mAppsView.getActiveRecyclerView().getClipBounds().top;
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public int getTaskbarAllAppsScroll() {
|
||||
// Allow null-pointer since this should only be null if the apps view is not showing.
|
||||
return mAppsView.getActiveRecyclerView().computeVerticalScrollOffset();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user