Move shelf peeking anim code to ShelfPeekAnim class

Bug: 126596417
Change-Id: I5ba501b04b3eaf12a20ba1312ef362f9734761c3
This commit is contained in:
Tony Wickham
2019-11-07 13:28:50 -08:00
parent 5bdae3d869
commit 85d6f25016
6 changed files with 152 additions and 43 deletions

View File

@@ -48,6 +48,7 @@ import com.android.quickstep.SysUINavigationMode.Mode;
import com.android.quickstep.SysUINavigationMode.NavigationModeChangeListener;
import com.android.quickstep.SystemUiProxy;
import com.android.quickstep.util.RemoteFadeOutAnimationListener;
import com.android.quickstep.util.ShelfPeekAnim;
import java.util.stream.Stream;
@@ -64,6 +65,8 @@ public abstract class BaseQuickstepLauncher extends Launcher
(context, arg1, arg2) -> SystemUiProxy.INSTANCE.get(context).setBackButtonAlpha(
Float.intBitsToFloat(arg1), arg2 != 0);
private final ShelfPeekAnim mShelfPeekAnim = new ShelfPeekAnim(this);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -270,4 +273,8 @@ public abstract class BaseQuickstepLauncher extends Launcher
return Stream.concat(super.getSupportedShortcuts(),
Stream.of(WellbeingModel.SHORTCUT_FACTORY));
}
public ShelfPeekAnim getShelfPeekAnim() {
return mShelfPeekAnim;
}
}