Merge "Update TV input list upon package state changes in Kids profile" into sc-dev am: a93719505c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15330816 Change-Id: I28e71bc6ca24978d86082e25f7892f4673f39517
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user