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",