Have LauncherActivityInterface#getCreatedActivity return BaseQuickstepLauncher
This gives access to quickstep-specific functionality such as ShelfPeekAnim. Change-Id: I514baa45fe9404157de51f06e891eaea3fc86971
This commit is contained in:
+4
-5
@@ -213,7 +213,7 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La
|
||||
@Override
|
||||
public AnimationFactory prepareRecentsUI(boolean activityVisible,
|
||||
boolean animateActivity, Consumer<AnimatorPlaybackController> callback) {
|
||||
Launcher launcher = getCreatedActivity();
|
||||
BaseQuickstepLauncher launcher = getCreatedActivity();
|
||||
final LauncherState startState = launcher.getStateManager().getState();
|
||||
|
||||
LauncherState resetState = startState;
|
||||
@@ -229,8 +229,7 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La
|
||||
launcher.getAppsView().reset(false /* animate */);
|
||||
|
||||
return new AnimationFactory() {
|
||||
private final ShelfPeekAnim mShelfAnim =
|
||||
((BaseQuickstepLauncher) launcher).getShelfPeekAnim();
|
||||
private final ShelfPeekAnim mShelfAnim = launcher.getShelfPeekAnim();
|
||||
private boolean mIsAttachedToWindow;
|
||||
|
||||
@Override
|
||||
@@ -400,8 +399,8 @@ public final class LauncherActivityInterface implements BaseActivityInterface<La
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Launcher getCreatedActivity() {
|
||||
return Launcher.ACTIVITY_TRACKER.getCreatedActivity();
|
||||
public BaseQuickstepLauncher getCreatedActivity() {
|
||||
return BaseQuickstepLauncher.ACTIVITY_TRACKER.getCreatedActivity();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user