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

Commit 86c952d0 authored by Ravi Paluri's avatar Ravi Paluri Committed by Linux Build Service Account
Browse files

IMS-VT: Process display changed indication only for default display

On receiving display changed indication, query display state only
if the indication is for default display else ignore the indication.

Change-Id: I3be86f6e8abf7c3045cae38010a37eea186885b4
CRs-Fixed: 1040932
parent 4961ba60
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -200,10 +200,6 @@ public class InCallUiStateNotifier implements DisplayManager.DisplayListener {
     */
     */
    @Override
    @Override
    public void onDisplayChanged(int displayId) {
    public void onDisplayChanged(int displayId) {
        final int displayState = mDisplayManager.getDisplay(displayId).getState();
        Log.d(this, "onDisplayChanged displayState: " + displayState +
                " displayId: " + displayId);

        /* Ignore display changed indications if they are received for displays
        /* Ignore display changed indications if they are received for displays
         * other than default display
         * other than default display
         */
         */
@@ -212,6 +208,10 @@ public class InCallUiStateNotifier implements DisplayManager.DisplayListener {
            return;
            return;
        }
        }


        final int displayState = mDisplayManager.getDisplay(displayId).getState();
        Log.d(this, "onDisplayChanged displayState: " + displayState +
                " displayId: " + displayId);

        //Check UI's old state before updating corresponding state variable(s)
        //Check UI's old state before updating corresponding state variable(s)
        final boolean wasShowing = isUiShowing();
        final boolean wasShowing = isUiShowing();