mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Changing actions button visibility to match clear-all button
> Removing translation when animating actions button Change-Id: I6875e03f9c55f00232c605743348175ea132cb15
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user