Merge "Enable mobile data always on."
am: 68317d6329
Change-Id: I9758da5105b9a8eac66aaaf9e4a1658685a6a3f7
This commit is contained in:
commit
ab50ac01d0
1 changed files with 1 additions and 1 deletions
|
|
@ -883,7 +883,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
|
||||
private void handleMobileDataAlwaysOn() {
|
||||
final boolean enable = (Settings.Global.getInt(
|
||||
mContext.getContentResolver(), Settings.Global.MOBILE_DATA_ALWAYS_ON, 0) == 1);
|
||||
mContext.getContentResolver(), Settings.Global.MOBILE_DATA_ALWAYS_ON, 1) == 1);
|
||||
final boolean isEnabled = (mNetworkRequests.get(mDefaultMobileDataRequest) != null);
|
||||
if (enable == isEnabled) {
|
||||
return; // Nothing to do.
|
||||
|
|
|
|||
Loading…
Reference in a new issue