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

Commit 8865275e authored by Ji-Hwan Lee's avatar Ji-Hwan Lee
Browse files

DO NOT MERGE: Use main looper for PackageMonitor

This is to work-around the issue that TvInputManagerService does not
receive package change callbacks from PackageMonitor.

In ATV emulator build, the background thread is blocked at
android_location_GpsLocationProvider_init(), and PackageMonitor that uses
background thread fails to handle broadcast intent.

Bug: 15767453
Change-Id: Ieef00cedf1357d57e4217ec202d50655ba3aa35a
parent 0ceb7e47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ public final class TvInputManagerService extends SystemService {
                }
            }
        };
        monitor.register(mContext, null, UserHandle.ALL, true);
        monitor.register(mContext, Looper.getMainLooper(), UserHandle.ALL, true);

        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction(Intent.ACTION_USER_SWITCHED);