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

Commit 1a0a3b77 authored by Youngsang Cho's avatar Youngsang Cho Committed by android-build-merger
Browse files

Merge "TIF: build TvInput list at onUnlockUser" into nyc-dev am: 00f8ee28

am: 195e07fd

* commit '195e07fd':
  TIF: build TvInput list at onUnlockUser

Change-Id: Iad6f7b311ecdbbf115054b8c024c10d415e5055f
parents c22b5b05 195e07fd
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -157,6 +157,18 @@ public final class TvInputManagerService extends SystemService {
        mTvInputHardwareManager.onBootPhase(phase);
    }

    @Override
    public void onUnlockUser(int userHandle) {
        if (DEBUG) Slog.d(TAG, "onUnlockUser(userHandle=" + userHandle + ")");
        synchronized (mLock) {
            if (mCurrentUserId != userHandle) {
                return;
            }
            buildTvInputListLocked(mCurrentUserId, null);
            buildTvContentRatingSystemListLocked(mCurrentUserId);
        }
    }

    private void registerBroadcastReceivers() {
        PackageMonitor monitor = new PackageMonitor() {
            private void buildTvInputList(String[] packages) {