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

Commit 2129ea59 authored by Yanting Yang's avatar Yanting Yang Committed by Android (Google) Code Review
Browse files

Merge "Fix crash of PictureInPictureDetailPreferenceController" into sc-v2-dev

parents 77dfb359 31d9ec33
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -67,7 +67,9 @@ public class PictureInPictureDetailPreferenceController extends AppInfoPreferenc
        try {
            packageInfoWithActivities = mPackageManager.getPackageInfoAsUser(mPackageName,
                    PackageManager.GET_ACTIVITIES, UserHandle.myUserId());
        } catch (PackageManager.NameNotFoundException e) {
        } catch (Exception e) {
            // Catch Exception to avoid DeadObjectException thrown with binder transaction
            // failures, since the explicit request of DeadObjectException has compiler errors.
            Log.e(TAG, "Exception while retrieving the package info of " + mPackageName, e);
        }