修改sonarQube问题

This commit is contained in:
jack
2022-02-22 11:15:11 +08:00
parent 11056df05e
commit e9db55bcb6
22 changed files with 54 additions and 105 deletions

View File

@ -272,9 +272,6 @@ public class MainActivity extends BaseActivity {
ReservationRepository.refreshReservations();
if (getIntent().getBooleanExtra(SWITCH_TO_COMMUNITY, false)) {
handler.postDelayed(this::switchToCommunityTabAndRefresh, 800);
}
if (getIntent().getBooleanExtra(SWITCH_TO_VIDEO, false)) {
handler.postDelayed(() -> mMainWrapperFragment.setCurrentItem(2), 800);
}
@ -803,21 +800,11 @@ public class MainActivity extends BaseActivity {
doSkip();
}
// 跳转到问答社区并刷新
if (getIntent().getBooleanExtra(SWITCH_TO_COMMUNITY, false)) {
switchToCommunityTabAndRefresh();
}
if (getIntent().getBooleanExtra(SWITCH_TO_VIDEO, false)) {
mMainWrapperFragment.setCurrentItem(2);
}
}
private void switchToCommunityTabAndRefresh() {
// getIntent().putExtra(SWITCH_TO_COMMUNITY, false);
// Log.e("Switch", "true");
// EventBus.getDefault().post(new EBSkip(MainActivity.EB_SKIP_MAIN, MainWrapperFragment.INDEX_BBS));
// EventBus.getDefault().post(new EBReuse(CommunityFragment.EB_RETRY_PAGE));
}
private void checkTinkerPath() {
// CommonDebug.logMethodWithParams(this, TinkerManager.getTinkerId(), TinkerManager.getNewTinkerId());