Skip to content

Commit 404479a

Browse files
Migrate DATA_ACTIVITY_TIMEOUT_MOBILE/WIFI from Settings.Secure to Settings.Global
Bug: 7189605 Change-Id: Id54b8d490d7849bf071c3fbfd8f7358ed873a4e8
1 parent be47828 commit 404479a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

services/java/com/android/server/ConnectivityService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,14 +2108,14 @@ private void setupDataActivityTracking(int type) {
21082108
final int timeout;
21092109

21102110
if (ConnectivityManager.isNetworkTypeMobile(type)) {
2111-
timeout = Settings.Secure.getInt(mContext.getContentResolver(),
2112-
Settings.Secure.DATA_ACTIVITY_TIMEOUT_MOBILE,
2111+
timeout = Settings.Global.getInt(mContext.getContentResolver(),
2112+
Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
21132113
0);
21142114
// Canonicalize mobile network type
21152115
type = ConnectivityManager.TYPE_MOBILE;
21162116
} else if (ConnectivityManager.TYPE_WIFI == type) {
2117-
timeout = Settings.Secure.getInt(mContext.getContentResolver(),
2118-
Settings.Secure.DATA_ACTIVITY_TIMEOUT_WIFI,
2117+
timeout = Settings.Global.getInt(mContext.getContentResolver(),
2118+
Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI,
21192119
0);
21202120
} else {
21212121
// do not track any other networks

0 commit comments

Comments
 (0)