Skip to content

Commit 7462892

Browse files
authored
Add missing constructor (#424)
1 parent db065ec commit 7462892

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

AndroidSDKCore/src/main/java/com/leanplum/views/BackgroundImageView.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ public BackgroundImageView(Context context, AttributeSet attrs) {
6060
init();
6161
}
6262

63+
/**
64+
* This constructor is left for backward compatibility with the samples of message templates.
65+
*/
66+
public BackgroundImageView(Context context, boolean fullscreen) {
67+
super(context);
68+
init();
69+
roundedCorners = !fullscreen;
70+
}
71+
6372
public BackgroundImageView(
6473
Context context,
6574
int backgroundColor,

0 commit comments

Comments
 (0)