Skip to content

Commit

Permalink
Merge pull request #28 from Daxito/FixFor11
Browse files Browse the repository at this point in the history
Fixes Issue #11 (and 20)
  • Loading branch information
PanayotCankov committed Oct 20, 2016
2 parents d60aebf + 828066d commit b06d761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nativescript-background-http/background-http.android.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import application = require("application");
import frame = require("ui/frame");
import data_observable = require("data/observable");
import utils = require("utils/utils");

declare var net;

Expand Down Expand Up @@ -63,7 +64,7 @@ var receiver;
export function session(id: string) {

if (!receiver) {
var context = application.android.context;
var context = utils.ad.getApplicationContext();
receiver = new ProgressReceiver();
receiver.register(context);
}
Expand Down

0 comments on commit b06d761

Please sign in to comment.