Merge "Enable mobile data always on." am: 7ab1654533 am: 0df74d1ee7
am: e50c60e1f1
Change-Id: Iaf4f84f53be65800c95a4f1b456a0d2d142c8c87
This commit is contained in:
@@ -883,7 +883,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
|
|
||||||
private void handleMobileDataAlwaysOn() {
|
private void handleMobileDataAlwaysOn() {
|
||||||
final boolean enable = (Settings.Global.getInt(
|
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);
|
final boolean isEnabled = (mNetworkRequests.get(mDefaultMobileDataRequest) != null);
|
||||||
if (enable == isEnabled) {
|
if (enable == isEnabled) {
|
||||||
return; // Nothing to do.
|
return; // Nothing to do.
|
||||||
|
|||||||
Reference in New Issue
Block a user