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

Commit a9b95f54 authored by Kensuke Miyagi's avatar Kensuke Miyagi
Browse files

Update TV input list upon package state changes in Kids profile

Bug: 194118080
Test: Confirmed buildTvInputListLocked() gets properly called in Kids
profile as well

Change-Id: I0d0537a62fe7728b8e59330817606a352af08180
parent 4438cf67
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -209,10 +209,11 @@ public final class TvInputManagerService extends SystemService {
    private void registerBroadcastReceivers() {
        PackageMonitor monitor = new PackageMonitor() {
            private void buildTvInputList(String[] packages) {
                int userId = getChangingUserId();
                synchronized (mLock) {
                    if (mCurrentUserId == getChangingUserId()) {
                        buildTvInputListLocked(mCurrentUserId, packages);
                        buildTvContentRatingSystemListLocked(mCurrentUserId);
                    if (mCurrentUserId == userId || mRunningProfiles.contains(userId)) {
                        buildTvInputListLocked(userId, packages);
                        buildTvContentRatingSystemListLocked(userId);
                    }
                }
            }