Skip to content

Commit e271066

Browse files
authored
Fix rich interstitial customizer to be called (#463)
1 parent 95d6052 commit e271066

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

AndroidSDKCore/src/main/java/com/leanplum/messagetemplates/controllers/RichHtmlController.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ protected void runDismissAction() {
8989

9090
@Override
9191
protected void applyWindowDecoration() {
92-
if (isFullscreen())
92+
if (isFullscreen()) {
93+
customizeDialog();
9394
return;
95+
}
9496

9597
Window window = getWindow();
9698
if (window == null) {
@@ -127,6 +129,11 @@ protected void applyWindowDecoration() {
127129
}
128130
}
129131

132+
customizeDialog();
133+
134+
}
135+
136+
private void customizeDialog() {
130137
DialogCustomizer customizer = MessageTemplates.getCustomizer();
131138
if (customizer != null) {
132139
if (richOptions.isBanner()) {
@@ -135,7 +142,6 @@ protected void applyWindowDecoration() {
135142
customizer.customizeRichInterstitial(this, contentView);
136143
}
137144
}
138-
139145
}
140146

141147
@Override

0 commit comments

Comments
 (0)