- made theme 2 banner dynamic, if ad loads then only it will be shown
- made radio ad dynamic, now ad will show up only if ad is received - added a retry count to fm, it will try 4 times to connect to the server if not then showing the reload btn
This commit is contained in:
@@ -40,7 +40,7 @@ class AdReusable {
|
||||
|
||||
// If height is provided, add rounded corners
|
||||
if let heightValue = height, heightValue > 0 {
|
||||
bannerView.layer.cornerRadius = 2
|
||||
bannerView.layer.cornerRadius = 4
|
||||
bannerView.clipsToBounds = true
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class AdReusable {
|
||||
bannerView.load(GADRequest())
|
||||
|
||||
// Ensure the layout is updated
|
||||
bannerView.layoutIfNeeded()
|
||||
containerView.layoutIfNeeded()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user