File tree Expand file tree Collapse file tree
services/java/com/android/server Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments