处理 Sonarqube 异常

This commit is contained in:
juntao
2022-01-26 15:33:43 +08:00
parent 267e9f3ccc
commit dacb7e3dd6
15 changed files with 19 additions and 17 deletions

View File

@ -172,7 +172,7 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
@SuppressWarnings("ConstantConditions")
@Override
public void setContentView(View view) {
if (!(this instanceof SplashScreenActivity) && PackageFlavorHelper.isTestFlavor) {
if (!(this instanceof SplashScreenActivity) && PackageFlavorHelper.IS_TEST_FLAVOR) {
view = getRootViewWithEnvIndicator(view);
}
super.setContentView(view);