优化
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 boolean mPaused;
|
||||||
private int mVideoLastProgress;
|
private int mVideoLastProgress;
|
||||||
private boolean mForward;
|
private boolean mForward;
|
||||||
private StyledPlayerView mPlayerView;
|
private Dialog progressDialog;
|
||||||
private ExoPlayer mPlayerForExo;
|
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
|
@Override
|
||||||
public Resources getResources() {
|
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) {
|
private void showDialog(Activity context) {
|
||||||
progressDialog = new Dialog(context, com.yunbao.common.R.style.dialog);
|
progressDialog = new Dialog(context, com.yunbao.common.R.style.dialog);
|
||||||
@ -548,9 +546,6 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
if (mPlayerForExo != null) {
|
|
||||||
mPlayerForExo.release();
|
|
||||||
}
|
|
||||||
EventBus.getDefault().unregister(this);
|
EventBus.getDefault().unregister(this);
|
||||||
if (mHandler != null) {
|
if (mHandler != null) {
|
||||||
mHandler.removeCallbacksAndMessages(null);
|
mHandler.removeCallbacksAndMessages(null);
|
||||||
@ -708,10 +703,6 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
mPaused = true;
|
mPaused = true;
|
||||||
if (mPlayerForExo != null) {
|
|
||||||
mPlayerForExo.pause();
|
|
||||||
}
|
|
||||||
|
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user