diff --git a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java index 4048e27db..eb7603759 100644 --- a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java +++ b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java @@ -383,13 +383,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL if (mContainer == null) { return; } - isImage = true; if (isImage) { - mAdList = new ArrayList<>(); - AdBean adBean = new AdBean(); - adBean.setUrl("https://downs.yaoulive.com/20230411/af6596ffcc35349adbae44dfb9c23a96.jpg"); - adBean.setLink("https://downs.yaoulive.com/20230411/af6596ffcc35349adbae44dfb9c23a96.jpg"); - mAdList.add(adBean); int imgSize = mAdList.size(); if (imgSize > 0) { mImageViewList = new ArrayList<>(); diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java index feaac1e9b..7b0ca9abb 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeLiveViewHolder.java @@ -334,6 +334,7 @@ public class MainHomeLiveViewHolder extends AbsMainHomeChildViewHolder implement String adUrl = ((Activity) mContext).getIntent().getStringExtra("ad_url"); ImageView ad = headView.findViewById(R.id.ad_img); if (StringUtil.isEmpty(adUrl)) { + ActivityCompat.startPostponedEnterTransition((Activity) mContext); ad.setVisibility(View.GONE); } else { //ImgLoader.display(mContext, adUrl, ad);