修复启动弹窗先于首页出现的问题
This commit is contained in:
@ -246,6 +246,8 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
if (showAd) {
|
||||
observeAd();
|
||||
} else {
|
||||
checkDialog();
|
||||
}
|
||||
|
||||
// handler.postDelayed(() -> {
|
||||
@ -369,8 +371,12 @@ public class MainActivity extends BaseActivity {
|
||||
getIntent().putExtra(SHOW_AD, false);
|
||||
findViewById(R.id.maskContainer).setVisibility(View.GONE);
|
||||
mMainWrapperFragment.getWelcomeDialog();
|
||||
|
||||
checkDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void checkDialog() {
|
||||
// 检查通知权限
|
||||
checkNotificationPermission();
|
||||
// 检查助手更新
|
||||
|
||||
Reference in New Issue
Block a user