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
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 }
You can’t perform that action at this time.
0 commit comments