Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 404479a9 authored by Ashish Sharma's avatar Ashish Sharma
Browse files

Migrate DATA_ACTIVITY_TIMEOUT_MOBILE/WIFI from Settings.Secure to Settings.Global

Bug: 7189605
Change-Id: Id54b8d490d7849bf071c3fbfd8f7358ed873a4e8
parent be47828f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2108,14 +2108,14 @@ public class ConnectivityService extends IConnectivityManager.Stub {
        final int timeout;

        if (ConnectivityManager.isNetworkTypeMobile(type)) {
            timeout = Settings.Secure.getInt(mContext.getContentResolver(),
                                             Settings.Secure.DATA_ACTIVITY_TIMEOUT_MOBILE,
            timeout = Settings.Global.getInt(mContext.getContentResolver(),
                                             Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
                                             0);
            // Canonicalize mobile network type
            type = ConnectivityManager.TYPE_MOBILE;
        } else if (ConnectivityManager.TYPE_WIFI == type) {
            timeout = Settings.Secure.getInt(mContext.getContentResolver(),
                                             Settings.Secure.DATA_ACTIVITY_TIMEOUT_WIFI,
            timeout = Settings.Global.getInt(mContext.getContentResolver(),
                                             Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI,
                                             0);
        } else {
            // do not track any other networks