From 07d3b190e228cb01e9584734df0b4a63606ac1da Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 26 Oct 2023 16:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=9F=E5=8B=95=E9=A0=81=E8=B7=B3=E8=BD=89?= =?UTF-8?q?=E5=BB=A3=E5=91=8A=E9=BB=9E=E6=93=8A=E8=BF=94=E5=9B=9E=E9=8D=B5?= =?UTF-8?q?=E9=80=80=E5=87=BA=E6=87=89=E7=94=A8=E5=95=8F=E9=A1=8C=E4=BF=AE?= =?UTF-8?q?=E5=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/shayu/phonelive/activity/LauncherActivity.java | 9 +++++++++ config.gradle | 4 ++-- 2 files changed, 11 insertions(+), 2 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 0415e00e9..f0619923c 100644 --- a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java +++ b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java @@ -392,6 +392,15 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL mPlayer = null; } + @Override + public void onBackPressed() { + if (mLauncherAdViewHolder != null) { + mLauncherAdViewHolder.release(); + checkUidAndToken(); + return; + } + super.onBackPressed(); + } /** * 播放广告 diff --git a/config.gradle b/config.gradle index 808d3435f..a4c1d2a21 100644 --- a/config.gradle +++ b/config.gradle @@ -9,9 +9,9 @@ ext { ] manifestPlaceholders = [ //正式、 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", // 测试 - serverHost : " https://ceshi.yaoulive.com", +// serverHost : " https://ceshi.yaoulive.com",