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

Commit 54d3e0ac authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Check magnification background type before setting corner radius." into main

parents 1e86bd39 fa4f821b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -408,6 +408,10 @@ public class FullscreenMagnificationController implements ComponentCallbacks {
        if (!isActivated()) {
            return;
        }
        if (!(mFullscreenBorder.getBackground() instanceof GradientDrawable)) {
            // Wear doesn't use the same magnification border background. So early return here.
            return;
        }

        float cornerRadius = ScreenDecorationsUtils.getWindowCornerRadius(mContext);
        GradientDrawable backgroundDrawable = (GradientDrawable) mFullscreenBorder.getBackground();