File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 29
29
if ( this . backColor )
30
30
this . _android . setBackgroundTintList ( android . content . res . ColorStateList . valueOf ( this . backColor . android ) ) ;
31
31
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
+ }
46
46
47
47
var that = new WeakRef ( this ) ;
48
48
You can’t perform that action at this time.
0 commit comments