Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e06a23ed authored by Pat Manning's avatar Pat Manning
Browse files

Update focus indicator radius to match workspace drag indicator radius.

Also decouple focus indicator radius from ENABLE_DEVICE_SEARCH feature flag, as it is used on home screen as well as all apps.

Bug: 313665319
Test: Manual.
Flag: N/A.
Change-Id: I629c1180b1b1b6797e2c3ba6ca13da04e8fa392b
parent 2e54a166
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -29,8 +29,7 @@ import android.graphics.Rect;
import android.util.FloatProperty;
import android.view.View;

import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.util.Themes;
import com.android.launcher3.R;

/**
 * A helper class to draw background of a focused item.
@@ -103,9 +102,8 @@ public abstract class ItemFocusIndicatorHelper<T> implements AnimatorUpdateListe

        setAlpha(0);
        mShift = 0;
        if (FeatureFlags.ENABLE_DEVICE_SEARCH.get()) {
            mRadius = Themes.getDialogCornerRadius(container.getContext());
        }
        mRadius = container.getResources().getDimensionPixelSize(
                R.dimen.grid_visualization_rounding_radius);
    }

    protected void setAlpha(float alpha) {