Skip to content

Commit 2b54e99

Browse files
committed
fix(dialog): android fix for titleIcon
1 parent a590bf2 commit 2b54e99

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dialogs/dialogs.android.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function createAlertDialogBuilder(options?: DialogOptions & MDCAlertControlerOpt
3131
builder.setTitle(options && isString(options.title) ? options.title : null);
3232
builder.setMessage(options && isString(options.message) ? options.message : null);
3333
if (options.titleIcon) {
34-
builder.setIcon(options.titleIcon.android);
34+
builder.setIcon(new android.graphics.drawable.BitmapDrawable(options.titleIcon.android));
3535
}
3636
if (options && options.cancelable === false) {
3737
builder.setCancelable(false);
@@ -44,9 +44,6 @@ function createAlertDialogBuilder(options?: DialogOptions & MDCAlertControlerOpt
4444
})
4545
);
4646
}
47-
if (options.titleIcon) {
48-
builder.setIcon(options.titleIcon.android);
49-
}
5047
if (options.customTitleView) {
5148
builder.setCustomTitle(options.customTitleView.nativeViewProtected);
5249
}

0 commit comments

Comments
 (0)