微调代码结构

This commit is contained in:
chenjuntao
2018-11-30 10:34:48 +08:00
parent 0c5dd84c27
commit f1cc12eea3

View File

@ -306,7 +306,9 @@ public class MainActivity extends BaseActivity {
// 获取可用(没有被隐藏的)的社区列表
CommunityHelper.getAvailableCommunityList();
handler.postDelayed(this::switchToCommunityTabAndRefresh, 800);
if (getIntent().getBooleanExtra(SWITCH_TO_COMMUNITY, false)) {
handler.postDelayed(this::switchToCommunityTabAndRefresh, 800);
}
// 跳转至其它页面
if (getIntent() != null && getIntent().getExtras() != null && !isSkipped) {