mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #2304 from NativeScript/atanasovg/update-http
Rename com.tns.Async.xxx to org.nativescript.widgets.Async.xxx
This commit is contained in:
@@ -589,7 +589,8 @@ function findPageForFragment(fragment: android.app.Fragment, frame: Frame) {
|
||||
}
|
||||
|
||||
function startActivity(activity: android.app.Activity, frameId: number) {
|
||||
var intent = new android.content.Intent(activity, (<any>com).tns.NativeScriptActivity.class);
|
||||
// TODO: Implicitly, we will open the same activity type as the current one
|
||||
var intent = new android.content.Intent(activity, activity.getClass());
|
||||
intent.setAction(android.content.Intent.ACTION_DEFAULT);
|
||||
intent.putExtra(INTENT_EXTRA, frameId);
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export class Cache extends common.Cache {
|
||||
this._cache = new LruBitmapCacheClass(cacheSize);
|
||||
|
||||
var that = new WeakRef(this);
|
||||
this._callback = new (<any>com).tns.Async.CompleteCallback({
|
||||
this._callback = new org.nativescript.widgets.Async.CompleteCallback({
|
||||
onComplete: function (result: any, context: any) {
|
||||
var instance = that.get();
|
||||
if (instance) {
|
||||
@@ -52,7 +52,7 @@ export class Cache extends common.Cache {
|
||||
}
|
||||
|
||||
public _downloadCore(request: common.DownloadRequest) {
|
||||
(<any>com).tns.Async.DownloadImage(request.url, this._callback, request.key);
|
||||
org.nativescript.widgets.Async.DownloadImage(request.url, this._callback, request.key);
|
||||
}
|
||||
|
||||
public get(key: string): any {
|
||||
|
||||
Reference in New Issue
Block a user