GameJob 4 éve
szülő
commit
b8f944f0ff

+ 3 - 2
src/main/java/com/kdanmobile/admanager/admob/AdmobAdManager.kt

@@ -11,13 +11,14 @@ class AdmobAdManager : AdManager {
     private lateinit var context: Context
     private lateinit var interstitialAdManager: InterstitialAdManager
     private lateinit var nativeAdManager: NativeAdManager
+
     override var isInitialized = false
     override val onInitListeners = CopyOnWriteArrayList<Runnable>()
     override var isPersonalized: Boolean = true
         set(value) {
             field = value
-            nativeAdManager?.isPersonalized = value
-            interstitialAdManager?.isPersonalized = value
+            interstitialAdManager.isPersonalized = value
+            nativeAdManager.isPersonalized = value
         }
 
     override fun init(context: Context, adAppId: String, adUnitId: String, volume: Float) {

+ 2 - 2
src/main/java/com/kdanmobile/admanager/mopub/MoPubAdManager.kt

@@ -18,8 +18,8 @@ class MoPubAdManager : AdManager {
     override var isPersonalized: Boolean = true
         set(value) {
             field = value
-            interstitialAdManager?.isPersonalized = value
-            nativeAdManager?.isPersonalized = value
+            interstitialAdManager.isPersonalized = value
+            nativeAdManager.isPersonalized = value
         }
 
     override fun init(context: Context, adAppId: String, adUnitId: String, volume: Float) {