Commit 1686686
committed
Android: Make
In `FlutterNativeAdLoadedListener`, make the inner weak reference
be generic on the `OnNativeAdLoadedListener` interface instead of
the `FlutterNativeAd` concrete class. This allows using the same
listener class with any other type that conforms to
`OnNativeAdLoadedListener`.
Update `FlutterNativeAd` to conform to `OnNativeAdLoadedListener`
to allow delegating in the same existing fashion.FlutterNativeAdLoadedListener more generally usable1 parent cd45ae9 commit 1686686
2 files changed
Lines changed: 8 additions & 7 deletions
File tree
- packages/google_mobile_ads/android/src/main/java/io/flutter/plugins/googlemobileads
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
| 108 | + | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
0 commit comments