private void showAppOpenAdIfAvailable() {
if (sharedPref.getIsFirstTimeLaunch()) {
startMainActivity();
} else {
if (isForceOpenAds) {
if (adsPref.getIsOpenAd()) {
adsManager.loadAppOpenAd(adsPref.getIsAppOpenAdOnStart(), this::startMainActivity);
} else {
startMainActivity();
}
} else {
if (adsPref.getAdStatus() && adsPref.getIsAppOpenAdOnStart()) {
((MyApplication) getApplication()).showAdIfAvailable(ActivitySplash.this, this::startMainActivity);
} else {
startMainActivity();
}
}
}
}