Skip to content

Commit 80646bf

Browse files
committed
Fixing rounded corners for IAMs
cardViews have their own custom background where corner radius is applied. By setting the backgroundColor you remove the custom background and replace it with a new one that has the new color. To avoid this we should be using the setCardBackgroundColor instead. This changes the color on the custom background instead of replacing it.
1 parent 3bcc63f commit 80646bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/InAppMessageView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ private CardView createCardView(Context context) {
396396
cardView.setClipChildren(false);
397397
cardView.setClipToPadding(false);
398398
cardView.setPreventCornerOverlap(false);
399-
cardView.setBackgroundColor(Color.TRANSPARENT);
399+
cardView.setCardBackgroundColor(Color.TRANSPARENT);
400400

401401
return cardView;
402402
}

0 commit comments

Comments
 (0)