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

Commit 9edcee7e authored by lpeter's avatar lpeter
Browse files

Use the right method to get the component state

Bug: 346935456
Test: atest CtsPackageManagerStatsHostTestCases
Change-Id: I956481478954c9eaadb4ba782a3109a7b25cf1f4
parent 915160c8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3999,7 +3999,9 @@ public class PackageManagerService implements PackageSender, TestUtilityService
                final PackageMetrics.ComponentStateMetrics componentStateMetrics =
                        new PackageMetrics.ComponentStateMetrics(setting,
                                UserHandle.getUid(userId, packageSetting.getAppId()),
                                packageSetting.getEnabled(userId), callingUid);
                                setting.isComponent() ? computer.getComponentEnabledSettingInternal(
                                        setting.getComponentName(), callingUid, userId)
                                        : packageSetting.getEnabled(userId), callingUid);
                if (!setEnabledSettingInternalLocked(computer, packageSetting, setting, userId,
                        callingPackage)) {
                    continue;