backgroundImage property now use Fetcher & Cache as Image component (#4030)

* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
This commit is contained in:
Hristo Hristov
2017-04-21 16:50:12 +03:00
committed by GitHub
parent 483df829c9
commit 9e3222781a
18 changed files with 403 additions and 396 deletions

View File

@@ -248,7 +248,7 @@ function initComponentCallbacks() {
},
onConfigurationChanged: function (newConfig: android.content.res.Configuration) {
let newOrientation = newConfig.orientation;
const newOrientation = newConfig.orientation;
if (newOrientation === currentOrientation) {
return;
}
@@ -311,4 +311,4 @@ declare namespace com {
static getInstance(): NativeScriptApplication;
}
}
}
}