Added typed information for lazily loaded android types.

This commit is contained in:
atanasovg
2016-01-20 14:03:04 +02:00
parent fbc612610f
commit f930914fa8
10 changed files with 13 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ function ensureLruBitmapCacheClass() {
export class Cache extends common.Cache {
private _callback: any;
private _cache;
private _cache: android.util.LruCache<string, android.graphics.Bitmap>;
constructor() {
super();
@@ -38,7 +38,6 @@ export class Cache extends common.Cache {
ensureLruBitmapCacheClass();
var maxMemory = java.lang.Runtime.getRuntime().maxMemory() / 1024;
var cacheSize = maxMemory / 8;
//console.log("cacheSize: " + cacheSize);
this._cache = new LruBitmapCacheClass(cacheSize);
var that = new WeakRef(this);