Skip to content

Commit c2867e7

Browse files
author
Vasil Chimev
authored
Merge pull request NativeScript#2428 from NativeScript/atanasovg/image-cache-update
Reflects some refactoring in the widgest for Android.
2 parents 42b267b + 422b6a4 commit c2867e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tns-core-modules/declarations.android.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ declare module org {
6262
onComplete(result: Object, context: Object): void;
6363
}
6464

65-
export function DownloadImage(url: string, callback: CompleteCallback, context: any);
65+
export module Image {
66+
export function download(url: string, callback: CompleteCallback, context: any);
67+
}
6668

6769
export module Http {
6870
export class KeyValuePair {

tns-core-modules/ui/image-cache/image-cache.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class Cache extends common.Cache {
5252
}
5353

5454
public _downloadCore(request: common.DownloadRequest) {
55-
org.nativescript.widgets.Async.DownloadImage(request.url, this._callback, request.key);
55+
org.nativescript.widgets.Async.Image.download(request.url, this._callback, request.key);
5656
}
5757

5858
public get(key: string): any {

0 commit comments

Comments
 (0)