Skip to content

Commit

Permalink
fixed minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
p32929 committed Jan 2, 2021
1 parent c1ef556 commit ba988d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Add the dependency

```
dependencies {
implementation 'com.github.p32929:HouseAds2:1.0.0.15'
implementation 'com.github.p32929:HouseAds2:1.0.0.16'
}
```

Expand Down
12 changes: 8 additions & 4 deletions myhouseads2lib/src/main/java/p32929/myhouseads2lib/HouseAds.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@ public void doSomethingAfter(double seconds, Runnable runnable) {
}

private void putBannerAds() {
currentAdView = new MyAdView(context, adArrayList.get(bannerCount));
if (linearLayout != null)
linearLayout.addView(currentAdView);
try {
currentAdView = new MyAdView(context, adArrayList.get(bannerCount));
if (linearLayout != null)
linearLayout.addView(currentAdView);

incrementAndSaveCounter();
incrementAndSaveCounter();
} catch (Exception e) {
//
}
}

public void putBannerAds(LinearLayout linearLayoutAds) {
Expand Down

0 comments on commit ba988d6

Please sign in to comment.