规范部分Thread

This commit is contained in:
kehaoyuan
2017-05-19 10:47:43 +08:00
parent 5865fdbd23
commit 0c1b48cee2
8 changed files with 99 additions and 79 deletions

View File

@ -144,17 +144,13 @@ public class CleanApkActivity extends BaseActivity implements CleanApkAdapter.On
case R.id.reuse_nodata_skip_tv_btn: {
Intent intent = MainActivity.getMainIntent(this);
startActivity(intent);
new Thread() {
mNodataSkipBtn.postDelayed(new Runnable() {
@Override
public void run() {
try {
sleep(300);
} catch (InterruptedException e) {
e.printStackTrace();
}
EventBus.getDefault().post(new EBSkip(MainActivity.EB_SKIP_GAMEFRAGMENT, 0));
}
}.start();
}, 300);
break;
}
}