File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function createAlertDialogBuilder(options?: DialogOptions & MDCAlertControlerOpt
31
31
builder . setTitle ( options && isString ( options . title ) ? options . title : null ) ;
32
32
builder . setMessage ( options && isString ( options . message ) ? options . message : null ) ;
33
33
if ( options . titleIcon ) {
34
- builder . setIcon ( options . titleIcon . android ) ;
34
+ builder . setIcon ( new android . graphics . drawable . BitmapDrawable ( options . titleIcon . android ) ) ;
35
35
}
36
36
if ( options && options . cancelable === false ) {
37
37
builder . setCancelable ( false ) ;
@@ -44,9 +44,6 @@ function createAlertDialogBuilder(options?: DialogOptions & MDCAlertControlerOpt
44
44
} )
45
45
) ;
46
46
}
47
- if ( options . titleIcon ) {
48
- builder . setIcon ( options . titleIcon . android ) ;
49
- }
50
47
if ( options . customTitleView ) {
51
48
builder . setCustomTitle ( options . customTitleView . nativeViewProtected ) ;
52
49
}
You can’t perform that action at this time.
0 commit comments