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(); }