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

Commit 1901401b authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Catch RuntimeException from DisplayManager

Bug: 171714761
Test: build
Change-Id: I5bad08dcf49472af16df18418102407be56e67e7
parent 46b02d88
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -384,7 +384,12 @@ public class MediaRouter {
        }

        public Display[] getAllPresentationDisplays() {
            try {
                return mDisplayService.getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION);
            } catch (RuntimeException ex) {
                Log.e(TAG, "Unable to get displays.", ex);
                return null;
            }
        }

        private void updatePresentationDisplays(int changedDisplayId) {