From bddf8c71aeb3db1bbeb75c5be3128480d5f574a7 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 19 Apr 2023 13:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=B0=83=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/shayu/phonelive/activity/LauncherActivity.java | 6 ------ .../java/com/yunbao/main/views/MainHomeLiveViewHolder.java | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) 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);