We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1aefe commit 20ea2dcCopy full SHA for 20ea2dc
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYBaseVideoPlayer.java
@@ -936,6 +936,10 @@ public GSYVideoPlayer getFullWindowPlayer() {
936
*/
937
@SuppressWarnings("ResourceType")
938
public GSYVideoPlayer getSmallWindowPlayer() {
939
+ Activity activity = CommonUtil.scanForActivity(getContext());
940
+ if (activity == null) {
941
+ return null;
942
+ }
943
ViewGroup vp = (ViewGroup) (CommonUtil.scanForActivity(getContext())).findViewById(Window.ID_ANDROID_CONTENT);
944
final View small = vp.findViewById(getSmallId());
945
GSYVideoPlayer gsyVideoPlayer = null;
0 commit comments