Skip to content

Commit

Permalink
Disable default APN context when release network request is received.
Browse files Browse the repository at this point in the history
Currently, default apn context remains in enabled state even after
receiving release network request from Connectivity Service.
This causes mobile internet data to get re enabled when WIFI is connected.
Explicitly disable default apn context when release network request is
received.

Change-Id: I9d81072d196939b1085dbd9a1b984a06b95566bb
CRs-Fixed: 746834
  • Loading branch information
Muhammed Siju authored and Alberto97 committed Dec 4, 2014
1 parent b9530b4 commit dbc9eee
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,13 @@ private void removeRequestIfFound(NetworkRequest n) {
if(!isNetworkRequestForInternet(n)) {
SubscriptionController subController = SubscriptionController.getInstance();
subController.stopOnDemandDataSubscriptionRequest(n);
} else {
// Internet requests are not queued in DDS list. So deactivate here explicitly.
ApnContext apnContext = apnContextForNetworkRequest(n);
if (apnContext != null) {
log("Deactivating APN=" + apnContext);
apnContext.decRefCount();
}
}
}

Expand Down

0 comments on commit dbc9eee

Please sign in to comment.