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

Commit 08b3bafd authored by Ivan Chiang's avatar Ivan Chiang
Browse files

[PackageManager] Add @Nullable on PackageInfo#applicationInfo

PackageInfo#applicationInfo is nullable in some cases. E.g. The
package is hidden system app until installed case.

Bug: 280563551
Test: atest PackageInfoTest
Change-Id: I4ffd9c2a43d970e7819ed27ad7c8e573b5dc4f16
parent 2909b627
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12182,7 +12182,7 @@ package android.content.pm {
    field public static final int REQUESTED_PERMISSION_IMPLICIT = 4; // 0x4
    field public static final int REQUESTED_PERMISSION_NEVER_FOR_LOCATION = 65536; // 0x10000
    field public android.content.pm.ActivityInfo[] activities;
    field public android.content.pm.ApplicationInfo applicationInfo;
    field @Nullable public android.content.pm.ApplicationInfo applicationInfo;
    field @Nullable public android.content.pm.Attribution[] attributions;
    field public int baseRevisionCode;
    field public android.content.pm.ConfigurationInfo[] configPreferences;
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ public class PackageInfo implements Parcelable {
     * Information collected from the <application> tag, or null if
     * there was none.
     */
    @Nullable
    public ApplicationInfo applicationInfo;

    /**