summaryrefslogtreecommitdiff
path: root/services/java/com
diff options
context:
space:
mode:
author Conrad Chen <conradchen@google.com> 2017-04-05 17:31:01 -0700
committer Conrad Chen <conradchen@google.com> 2017-04-11 12:03:04 -0700
commit558acf96dbffc0f13b414b1a5c5de191f6ffe27a (patch)
treea8037ccffa9c39c5cbce265c6d1b4fd93c2c3281 /services/java/com
parent810e018e2459cf81f80480fdd61e7355e2fd250e (diff)
TIF: add TvInputManager methods to notify apps
Adds TvInputManager methods to notify apps with protected broadcasts for: 1. Disabling browsable state of preview and watch next programs. 2. Adding preview programs to watch next programs. Test: build and verify manually to check if notifications are broadcasted. Bug: 35881266 Change-Id: I20fd5b63f42b2c74277315bbbd251b71c649e5c1
Diffstat (limited to 'services/java/com')
-rw-r--r--services/java/com/android/server/SystemServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index a5eac46281f3..e4be27b5bba2 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -1423,7 +1423,8 @@ public final class SystemServer {
traceEnd();
}
- if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LIVE_TV)) {
+ if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LIVE_TV)
+ || mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
traceBeginAndSlog("StartTvInputManager");
mSystemServiceManager.startService(TvInputManagerService.class);
traceEnd();