Skip to content

Commit

Permalink
Merge pull request CarGuo#3352 from TestSmirk/fixIssue
Browse files Browse the repository at this point in the history
增加针对某些dataBinding的场景,
  • Loading branch information
CarGuo authored Aug 6, 2021
2 parents 712aaa6 + fddaac5 commit d4c47e0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,12 @@ public void setRotateWithSystem(boolean rotateWithSystem) {
*/
@SuppressWarnings("ResourceType")
public GSYVideoPlayer getFullWindowPlayer() {
ViewGroup vp = (ViewGroup) (CommonUtil.scanForActivity(getContext())).findViewById(Window.ID_ANDROID_CONTENT);
Activity activity = CommonUtil.scanForActivity(getContext());
if (activity == null) {
return null;
}
ViewGroup vp = (ViewGroup) activity.findViewById(Window.ID_ANDROID_CONTENT);

final View full = vp.findViewById(getFullId());
GSYVideoPlayer gsyVideoPlayer = null;
if (full != null) {
Expand Down

0 comments on commit d4c47e0

Please sign in to comment.