优化
This commit is contained in:
parent
168d4a37b7
commit
299e109c3d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user