Changing actions button visibility to match clear-all button

> Removing translation when animating actions button

Change-Id: I6875e03f9c55f00232c605743348175ea132cb15
This commit is contained in:
Sunny Goyal
2020-03-26 15:28:36 -07:00
parent c2203b13a4
commit 514dfa2deb
9 changed files with 53 additions and 57 deletions

View File

@@ -34,6 +34,7 @@ import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.CancellationSignal;
import android.view.View;
import com.android.launcher3.LauncherState.ScaleAndTranslation;
import com.android.launcher3.LauncherStateManager.StateHandler;
@@ -80,6 +81,8 @@ public abstract class BaseQuickstepLauncher extends Launcher
private final ShelfPeekAnim mShelfPeekAnim = new ShelfPeekAnim(this);
private View mActionsView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -224,16 +227,22 @@ public abstract class BaseQuickstepLauncher extends Launcher
@Override
protected void setupViews() {
super.setupViews();
mActionsView = findViewById(R.id.overview_actions_view);
if (FeatureFlags.ENABLE_OVERVIEW_ACTIONS.get() && removeShelfFromOverview(this)) {
// Overview is above all other launcher elements, including qsb, so move it to the top.
getOverviewPanel().bringToFront();
if (getActionsView() != null) {
getActionsView().bringToFront();
if (mActionsView != null) {
mActionsView.bringToFront();
}
}
}
public View getActionsView() {
return mActionsView;
}
@Override
protected void closeOpenViews(boolean animate) {
super.closeOpenViews(animate);