Merge "TIF: Do not build input list for background user" into nyc-dev

am: 4a6bd4b

* commit '4a6bd4b48fe309f50a3878d85104be6fbf244d50':
  TIF: Do not build input list for background user

Change-Id: Ibd788b4903e306c1b18a093183880001dbf14475
This commit is contained in:
Dongwon Kang
2016-04-20 19:24:24 +00:00
committed by android-build-merger

View File

@@ -161,8 +161,10 @@ public final class TvInputManagerService extends SystemService {
PackageMonitor monitor = new PackageMonitor() {
private void buildTvInputList(String[] packages) {
synchronized (mLock) {
buildTvInputListLocked(getChangingUserId(), packages);
buildTvContentRatingSystemListLocked(getChangingUserId());
if (mCurrentUserId == getChangingUserId()) {
buildTvInputListLocked(mCurrentUserId, packages);
buildTvContentRatingSystemListLocked(mCurrentUserId);
}
}
}