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

Commit 4aa280fe authored by Jackal Guo's avatar Jackal Guo
Browse files

Set CATEGORY_UNDEFINED as default category

It's possible that there is no tag <application> in the mainfest.
Therefore, category wouldn't be set to CATEGORY_UNDEFINED properly.
Assign the proper default value for this case.

Fix: 207456733
Test: atest AndroidPackageInfoFlagBehaviorTest
Test: atest AndroidPackageParsingEquivalenceTest
Change-Id: I5fb82fea5ccdf216b5825c0c3a254d8be3666c04
parent 083bd48e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ public class ParsingPackageImpl implements ParsingPackage, ParsingPackageHidden,
    @DataClass.ParcelWith(ForInternedString.class)
    private String backupAgentName;
    private int banner;
    private int category;
    private int category = ApplicationInfo.CATEGORY_UNDEFINED;
    @Nullable
    @DataClass.ParcelWith(ForInternedString.class)
    private String classLoaderName;