pull/149/head
FongMi 2 years ago
parent 14652af5ac
commit b48f7c7988
  1. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java
  2. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownLive.java
  3. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/custom/CustomKeyDownVod.java

@ -37,7 +37,7 @@ public class CustomKeyDownVod extends GestureDetector.SimpleOnGestureListener {
}
private CustomKeyDownVod(Activity activity, View videoView) {
this.manager = (AudioManager) App.get().getSystemService(Context.AUDIO_SERVICE);
this.manager = (AudioManager) activity.getSystemService(Context.AUDIO_SERVICE);
this.detector = new GestureDetector(activity, this);
this.listener = (Listener) activity;
this.videoView = videoView;

@ -37,7 +37,7 @@ public class CustomKeyDownLive extends GestureDetector.SimpleOnGestureListener {
}
private CustomKeyDownLive(Activity activity, View videoView) {
this.manager = (AudioManager) App.get().getSystemService(Context.AUDIO_SERVICE);
this.manager = (AudioManager) activity.getSystemService(Context.AUDIO_SERVICE);
this.detector = new GestureDetector(activity, this);
this.listener = (Listener) activity;
this.videoView = videoView;

@ -36,7 +36,7 @@ public class CustomKeyDownVod extends GestureDetector.SimpleOnGestureListener {
}
private CustomKeyDownVod(Activity activity, View videoView) {
this.manager = (AudioManager) App.get().getSystemService(Context.AUDIO_SERVICE);
this.manager = (AudioManager) activity.getSystemService(Context.AUDIO_SERVICE);
this.detector = new GestureDetector(activity, this);
this.listener = (Listener) activity;
this.videoView = videoView;

Loading…
Cancel
Save