Loading services/core/java/com/android/server/wm/DisplayPolicy.java +6 −3 Original line number Diff line number Diff line Loading @@ -1040,9 +1040,12 @@ public class DisplayPolicy { } if (attrs.providesInsetsTypes != null) { // Recents component is allowed to add inset types. if (!mService.mAtmInternal.isCallerRecents(callingUid)) { mContext.enforcePermission( android.Manifest.permission.STATUS_BAR_SERVICE, callingPid, callingUid, "DisplayPolicy"); } enforceSingleInsetsTypeCorrespondingToWindowType(attrs.providesInsetsTypes); for (@InternalInsetsType int insetType : attrs.providesInsetsTypes) { Loading Loading
services/core/java/com/android/server/wm/DisplayPolicy.java +6 −3 Original line number Diff line number Diff line Loading @@ -1040,9 +1040,12 @@ public class DisplayPolicy { } if (attrs.providesInsetsTypes != null) { // Recents component is allowed to add inset types. if (!mService.mAtmInternal.isCallerRecents(callingUid)) { mContext.enforcePermission( android.Manifest.permission.STATUS_BAR_SERVICE, callingPid, callingUid, "DisplayPolicy"); } enforceSingleInsetsTypeCorrespondingToWindowType(attrs.providesInsetsTypes); for (@InternalInsetsType int insetType : attrs.providesInsetsTypes) { Loading