Don't wait until layout to calculate the scroll range
State UI is based on scroll range, which is applied on insets change. So the scroll range should be updated as part of insets change, for the State UI to be applied properly Bug: 77220795 Change-Id: I839f89e4887d9731b1483135724227c4245a00a9
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
*/
|
||||
package com.android.launcher3.allapps;
|
||||
|
||||
import android.support.animation.SpringAnimation;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.view.KeyEvent;
|
||||
|
||||
/**
|
||||
@@ -29,11 +27,6 @@ public interface SearchUiManager {
|
||||
*/
|
||||
void initialize(AllAppsContainerView containerView);
|
||||
|
||||
/**
|
||||
* A {@link SpringAnimation} that will be used when the user flings.
|
||||
*/
|
||||
@NonNull SpringAnimation getSpringForFling();
|
||||
|
||||
/**
|
||||
* Notifies the search manager to close any active search session.
|
||||
*/
|
||||
@@ -44,14 +37,4 @@ public interface SearchUiManager {
|
||||
* some UI beforehand.
|
||||
*/
|
||||
void preDispatchKeyEvent(KeyEvent keyEvent);
|
||||
|
||||
void addOnScrollRangeChangeListener(OnScrollRangeChangeListener listener);
|
||||
|
||||
/**
|
||||
* Callback for listening to changes in the vertical scroll range when opening all-apps.
|
||||
*/
|
||||
interface OnScrollRangeChangeListener {
|
||||
|
||||
void onScrollRangeChanged(int scrollRange);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user