File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/src/nativescript-ngx-shadow/common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if (isAndroid) {
2121 PlainShadow = android . graphics . drawable . GradientDrawable . extend ( { } ) ;
2222}
2323
24- const classCache : { [ id : string ] : { class : any , fieldCache : { [ id : string ] : any } } } = { } ;
24+ const classCache : { [ id : string ] : { class : any , fieldCache : { [ id : string ] : number } } } = { } ;
2525// https://github.com/NativeScript/android-runtime/issues/1330
2626function getAndroidR ( rtype : string , field : string ) : number {
2727 const className = "android.R$" + rtype ;
@@ -32,9 +32,9 @@ function getAndroidR(rtype: string, field: string): number {
3232 } ;
3333 }
3434 if ( ! classCache [ className ] . fieldCache . hasOwnProperty ( field ) ) {
35- classCache [ className ] . fieldCache [ field ] = classCache [ className ] . class . getField ( field ) ;
35+ classCache [ className ] . fieldCache [ field ] = + classCache [ className ] . class . getField ( field ) . get ( null ) ;
3636 }
37- return + classCache [ className ] . fieldCache [ field ] . get ( null ) ;
37+ return classCache [ className ] . fieldCache [ field ] ;
3838}
3939
4040export class Shadow {
You can’t perform that action at this time.
0 commit comments