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

Commit de38e738 authored by Rupesh Bansal's avatar Rupesh Bansal Committed by Android (Google) Code Review
Browse files

Merge "Changed media router registration" into main

parents 69f053be 0d799a2d
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -183,7 +183,17 @@ public class MediaRouter {
            appContext.registerReceiver(new VolumeChangeReceiver(),
                    new IntentFilter(AudioManager.VOLUME_CHANGED_ACTION));

            if (com.android.server.display.feature.flags.Flags
                    .displayListenerPerformanceImprovements()
                    && com.android.server.display.feature.flags.Flags
                    .delayImplicitRrRegistrationUntilRrAccessed()) {
                mDisplayService.registerDisplayListener(this, mHandler,
                        DisplayManager.EVENT_TYPE_DISPLAY_ADDED
                                | DisplayManager.EVENT_TYPE_DISPLAY_CHANGED
                                | DisplayManager.EVENT_TYPE_DISPLAY_REMOVED);
            } else {
                mDisplayService.registerDisplayListener(this, mHandler);
            }

            AudioRoutesInfo newAudioRoutes = null;
            try {