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

Commit 4beb1c52 authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Automerger Merge Worker
Browse files

Catch RuntimeException from DisplayManager am: 1901401b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13566538

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I010bfdfff6baa82c1108623daa3403798f9966e9
parents 54eb0df0 1901401b
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) {