From 299e109c3d2ca6e15d2e9857e2506ce6b2fd9e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Thu, 26 Sep 2024 13:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../phonelive/activity/LauncherActivity.java | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 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 5afc36436..383e3f945 100644 --- a/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java +++ b/app/src/main/java/com/shayu/phonelive/activity/LauncherActivity.java @@ -113,9 +113,13 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL private boolean mPaused; private int mVideoLastProgress; private boolean mForward; - private StyledPlayerView mPlayerView; - private ExoPlayer mPlayerForExo; - + private Dialog progressDialog; + public ProgressBar progressBar; + public TextView tvProgress; + private int downLoadFaceSDKCount = 0; + private int unZipFaceSDKCount = 0; + private String downLoadFaceSDK_OutputDir; + private final String downLoadFaceSDK_downloadUrl = String.format("https://downs.yaoulive.com/androidLibs/t3/faceunity2-so-%s.zip", Build.CPU_ABI); @Override public Resources getResources() { @@ -242,13 +246,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL } } - private Dialog progressDialog; - public ProgressBar progressBar; - public TextView tvProgress; - private int downLoadFaceSDKCount = 0; - private int unZipFaceSDKCount = 0; - private String downLoadFaceSDK_OutputDir; - private String downLoadFaceSDK_downloadUrl = String.format("https://downs.yaoulive.com/androidLibs/t3/faceunity2-so-%s.zip", Build.CPU_ABI); + private void showDialog(Activity context) { progressDialog = new Dialog(context, com.yunbao.common.R.style.dialog); @@ -548,9 +546,6 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL @Override protected void onDestroy() { - if (mPlayerForExo != null) { - mPlayerForExo.release(); - } EventBus.getDefault().unregister(this); if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); @@ -708,10 +703,6 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL @Override protected void onPause() { mPaused = true; - if (mPlayerForExo != null) { - mPlayerForExo.pause(); - } - super.onPause(); }