File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 if ( this . backColor )
3030 this . _android . setBackgroundTintList ( android . content . res . ColorStateList . valueOf ( this . backColor . android ) ) ;
3131
32- if ( this . icon ) {
33- var iconDrawable = null ;
34-
35- if ( ImageSource . isFileOrResourcePath ( this . icon ) ) {
36- iconDrawable = ImageSource . fromFileOrResource ( this . icon ) ;
37- if ( iconDrawable != null )
38- this . _android . setImageBitmap ( iconDrawable . android ) ;
39- }
40- else {
41- var drawableId = android . content . res . Resources . getSystem ( ) . getIdentifier ( this . icon , "drawable" , "android" ) ;
42- iconDrawable = android . content . res . Resources . getSystem ( ) . getDrawable ( drawableId ) ;
43- this . _android . setImageDrawable ( iconDrawable ) ;
44- }
45- }
32+ if ( this . icon ) {
33+ var iconDrawable = null ;
34+
35+ if ( ImageSource . isFileOrResourcePath ( this . icon ) ) {
36+ iconDrawable = ImageSource . fromFileOrResource ( this . icon ) ;
37+ if ( iconDrawable != null )
38+ this . _android . setImageBitmap ( iconDrawable . android ) ;
39+ }
40+ else {
41+ var drawableId = android . content . res . Resources . getSystem ( ) . getIdentifier ( this . icon , "drawable" , "android" ) ;
42+ iconDrawable = android . content . res . Resources . getSystem ( ) . getDrawable ( drawableId ) ;
43+ this . _android . setImageDrawable ( iconDrawable ) ;
44+ }
45+ }
4646
4747 var that = new WeakRef ( this ) ;
4848
You can’t perform that action at this time.
0 commit comments