Merge "Fix crash of PictureInPictureDetailPreferenceController" into sc-v2-dev
This commit is contained in:
@@ -67,7 +67,9 @@ public class PictureInPictureDetailPreferenceController extends AppInfoPreferenc
|
|||||||
try {
|
try {
|
||||||
packageInfoWithActivities = mPackageManager.getPackageInfoAsUser(mPackageName,
|
packageInfoWithActivities = mPackageManager.getPackageInfoAsUser(mPackageName,
|
||||||
PackageManager.GET_ACTIVITIES, UserHandle.myUserId());
|
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);
|
Log.e(TAG, "Exception while retrieving the package info of " + mPackageName, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user