处理部分 4.7.4 遗留的空指针异常和数组越界异常
This commit is contained in:
@ -173,7 +173,7 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
setStatusBarColor(Color.TRANSPARENT);
|
||||
|
||||
|
||||
if (!isFrescoInitialized()) {
|
||||
BigImageViewer.initialize(FrescoImageLoader.with(this));
|
||||
}
|
||||
@ -438,11 +438,14 @@ public class MainActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
private void hideAd(boolean forceToHide) {
|
||||
if (forceToHide
|
||||
|| AdHelper.startupAd.getValue() == null) {
|
||||
if (forceToHide || AdHelper.startupAd.getValue() == null) {
|
||||
showAd = false;
|
||||
getIntent().putExtra(SHOW_AD, false);
|
||||
findViewById(R.id.maskContainer).setVisibility(View.GONE);
|
||||
View view = findViewById(R.id.maskContainer);
|
||||
|
||||
if (view != null) {
|
||||
view.setVisibility(View.GONE);
|
||||
}
|
||||
mMainWrapperFragment.getWelcomeDialog();
|
||||
|
||||
checkDialog();
|
||||
@ -950,7 +953,7 @@ public class MainActivity extends BaseActivity {
|
||||
Intent intent = MainActivity.getMainIntent(context);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 虽然在 Application 里有使用子线程初始化但有可能出现初始化超时(卡住?)的情况,
|
||||
* 这里反射获取 sDraweecontrollerbuildersupplier 根据是否有值确定是否被初始化了
|
||||
|
||||
Reference in New Issue
Block a user