aboutsummaryrefslogtreecommitdiff
path: root/sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java
diff options
context:
space:
mode:
Diffstat (limited to 'sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java')
-rw-r--r--sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java b/sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java
index 04acbea3..7f650b40 100644
--- a/sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java
+++ b/sample/src/com/example/android/sampleproxyservice/FakeHdmiTvInputService.java
@@ -16,6 +16,7 @@
package com.example.android.sampleproxyservice;
+import android.content.Context;
import android.media.tv.TvInputService;
import android.net.Uri;
import android.view.Surface;
@@ -28,10 +29,14 @@ public class FakeHdmiTvInputService extends TvInputService {
@Override
public Session onCreateSession(String inputId) {
- return new FakeHdmiSession();
+ return new FakeHdmiSession(this);
}
private class FakeHdmiSession extends Session {
+ public FakeHdmiSession(Context context) {
+ super(context);
+ }
+
@Override
public void onRelease() {
}