Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2023-02-05 01:04:10 +05:00
parent a5c0306636
commit 617083f48f
1 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,7 @@ public class appLovinManager {
private eventObserver.eventListener mEvent; private eventObserver.eventListener mEvent;
private applovinSupportManager mSupportManager; private applovinSupportManager mSupportManager;
private applovinBannerManager mBannerManager; private applovinBannerManager mBannerManager;
private AppCompatActivity mContext;
private boolean mLowMemoryReached = false; private boolean mLowMemoryReached = false;
@ -20,6 +21,8 @@ public class appLovinManager {
public appLovinManager(eventObserver.eventListener pEvent, View pBannerAds, AppCompatActivity pContext) { public appLovinManager(eventObserver.eventListener pEvent, View pBannerAds, AppCompatActivity pContext) {
this.mEvent = pEvent; this.mEvent = pEvent;
this.mContext = pContext;
onInitializeAdvertisement(pContext); onInitializeAdvertisement(pContext);
} }
@ -37,12 +40,16 @@ public class appLovinManager {
/*Local Helper Methods*/ /*Local Helper Methods*/
private void onShowInterstitial() { private void onShowInterstitial() {
if(AppLovinSdk.getInstance(mContext).isInitialized()){
this.mSupportManager.onShow(); this.mSupportManager.onShow();
} }
}
private void onToggleBannerShow(boolean pStatus) { private void onToggleBannerShow(boolean pStatus) {
if(AppLovinSdk.getInstance(mContext).isInitialized()){
this.mBannerManager.onShow(pStatus); this.mBannerManager.onShow(pStatus);
} }
}
/*Helper Methods*/ /*Helper Methods*/