diff options
| author | 2014-06-21 05:54:38 +0900 | |
|---|---|---|
| committer | 2014-06-21 06:31:12 +0900 | |
| commit | 8865275ebcf2cb1078917de78fa1184ce7eaa902 (patch) | |
| tree | edc82bd59938bc40ceee5ed3e2280200c582eec2 | |
| parent | 0ceb7e4755015eafda29c251eac285620788a51b (diff) | |
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
| -rw-r--r-- | services/core/java/com/android/server/tv/TvInputManagerService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java index acd79ed61630..7a95823f770e 100644 --- a/services/core/java/com/android/server/tv/TvInputManagerService.java +++ b/services/core/java/com/android/server/tv/TvInputManagerService.java @@ -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); |