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

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

Merge "Don't log error message when default display is requested." into main

parents 4e23d64b fc6caa65
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ import android.telephony.TelephonyManager;
import android.util.ArraySet;
import android.util.Log;
import android.view.ContextThemeWrapper;
import android.view.Display;
import android.view.GestureDetector;
import android.view.IWindowManager;
import android.view.LayoutInflater;
@@ -782,9 +783,14 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene

    private Context getContextForDisplay(int displayId) {
        if (!ShadeWindowGoesAround.isEnabled()) {
            Log.e(TAG, "Asked for the displayId=" + displayId
                    + " context but returning default display one as ShadeWindowGoesAround flag "
                    + "is disabled.");
            if (displayId != Display.DEFAULT_DISPLAY) {
                Log.e(
                        TAG,
                        "Asked for the displayId="
                                + displayId
                                + " context but returning default display one as"
                                + " ShadeWindowGoesAround flag is disabled.");
            }
            return mContext;
        }
        try {