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

Commit 52604cd3 authored by Alina Zaidi's avatar Alina Zaidi
Browse files

Remove duplicate isDragResizible method

Test: Current tests pass
Bug: 368055148
Flag: EXEMPT refactoring
Change-Id: I64913472613ce452e52cd34a681c2ac7a84fabf7
parent eff4dad4
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -576,10 +576,6 @@ public class DesktopModeWindowDecoration extends WindowDecoration<WindowDecorLin
        mWindowDecorCaptionHandleRepository.notifyCaptionChanged(captionState);
    }

    private static boolean isDragResizable(ActivityManager.RunningTaskInfo taskInfo) {
        return taskInfo.isFreeform() && taskInfo.isResizeable;
    }

    private void updateMaximizeMenu(SurfaceControl.Transaction startT) {
        if (!isDragResizable(mTaskInfo) || !isMaximizeMenuActive()) {
            return;