mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
a5c0306636
commit
617083f48f
|
@ -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*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue