处理 Sonarqube 异常
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user