File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
src/main/java/com/lazygeniouz/acv Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ android {
21
21
}
22
22
23
23
dependencies {
24
- implementation ' com.google.android.gms:play-services-ads:21.2 .0'
24
+ implementation ' com.google.android.gms:play-services-ads:21.3 .0'
25
25
}
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import android.util.Log
7
7
import android.view.Gravity
8
8
import android.view.View
9
9
import androidx.annotation.Keep
10
- import androidx.annotation.Nullable
11
10
import androidx.fragment.app.FragmentActivity
12
11
import androidx.lifecycle.Lifecycle
13
12
import androidx.lifecycle.LifecycleEventObserver
@@ -127,7 +126,6 @@ class AdContainerView @JvmOverloads constructor(
127
126
* Returns [AdView] if certain op. needs to be performed
128
127
* or certain info is required like mediation info of the ad.
129
128
*/
130
- @Nullable
131
129
@Suppress(" unused" )
132
130
fun getAdView (): AdView ? = newAdView
133
131
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import android.util.DisplayMetrics
12
12
import android.view.View
13
13
import android.widget.RelativeLayout
14
14
import androidx.annotation.Keep
15
- import androidx.annotation.Nullable
16
15
import androidx.fragment.app.FragmentActivity
17
16
import com.google.android.gms.ads.AdListener
18
17
import com.google.android.gms.ads.AdRequest
@@ -81,7 +80,6 @@ open class BaseAd @JvmOverloads constructor(
81
80
/* *
82
81
* Returns the attached ad listener if set, null otherwise
83
82
*/
84
- @Nullable
85
83
fun getAdListener (): AdListener ? = listener
86
84
87
85
/* *
@@ -121,9 +119,8 @@ open class BaseAd @JvmOverloads constructor(
121
119
private fun getAdaptiveAdSize (): AdSize {
122
120
return if (context is FragmentActivity ) {
123
121
val outMetrics = DisplayMetrics ()
124
- val display =
125
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .R ) context.display
126
- else (context as FragmentActivity ).windowManager.defaultDisplay
122
+ val display = if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .R ) context.display
123
+ else (context as FragmentActivity ).windowManager.defaultDisplay
127
124
128
125
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .R ) display?.getRealMetrics(outMetrics)
129
126
else display?.getMetrics(outMetrics)
You can’t perform that action at this time.
0 commit comments