Skip to content

Commit

Permalink
Merge pull request CarGuo#2769 from wangrunxiang/patch-1
Browse files Browse the repository at this point in the history
防止布局文件中去掉title
  • Loading branch information
CarGuo committed Jul 30, 2020
2 parents b2669e6 + 4c5accf commit 5388e3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected boolean setUp(List<GSYVideoModel> url, boolean cacheWithPlay, int posi
mMapHeadData = mapHeadData;
GSYVideoModel gsyVideoModel = url.get(position);
boolean set = setUp(gsyVideoModel.getUrl(), cacheWithPlay, cachePath, gsyVideoModel.getTitle(), changeState);
if (!TextUtils.isEmpty(gsyVideoModel.getTitle())) {
if (!TextUtils.isEmpty(gsyVideoModel.getTitle()) ) {
mTitleTextView.setText(gsyVideoModel.getTitle());
}
return set;
Expand All @@ -122,7 +122,7 @@ public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionB
if (gsyBaseVideoPlayer != null) {
ListGSYVideoPlayer listGSYVideoPlayer = (ListGSYVideoPlayer) gsyBaseVideoPlayer;
GSYVideoModel gsyVideoModel = mUriList.get(mPlayPosition);
if (!TextUtils.isEmpty(gsyVideoModel.getTitle())) {
if (!TextUtils.isEmpty(gsyVideoModel.getTitle()) && mTitleTextView != null) {
listGSYVideoPlayer.mTitleTextView.setText(gsyVideoModel.getTitle());
}
}
Expand Down

0 comments on commit 5388e3b

Please sign in to comment.