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

Commit a9371950 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update TV input list upon package state changes in Kids profile" into sc-dev

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