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

Commit 3bd992dc authored by Weihao Xia's avatar Weihao Xia
Browse files

Remove Redundant Variable for getStatusBarHeightForRotation

The bug 404727504 was solved by aligning the direction transformation
calculation with the current local width and height. After the fix,
variable info from DisplayInfo is no longer usfull.

Bug: 404727504
Change-Id: I150d1a23ebf30700f1e2d9b28eb1c2f1b52e751c
parent 5704fa07
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import android.content.res.Resources;
import android.graphics.Insets;
import android.view.Display;
import android.view.DisplayCutout;
import android.view.DisplayInfo;
import android.view.Surface;

import com.android.internal.R;
@@ -60,8 +59,6 @@ public final class SystemBarUtils {
        final Display display = context.getDisplay();
        final int rotation = display.getRotation();
        final DisplayCutout cutout = display.getCutout();
        DisplayInfo info = new DisplayInfo();
        display.getDisplayInfo(info);
        Insets insets;
        Insets waterfallInsets;
        final int localWidth = context.getResources().getDisplayMetrics().widthPixels;