diff options
| author | 2020-09-08 17:55:32 +0000 | |
|---|---|---|
| committer | 2020-09-08 17:55:32 +0000 | |
| commit | fca876eaf6e1a4f52659ed2abb0ed39a967f6028 (patch) | |
| tree | 8d4e0a449d4b1a8e9f7bce82ccdcb53c97c77256 | |
| parent | 55689cf7780779f60b590747f286ef887fd81142 (diff) | |
| parent | c903f6ac26409d443000b602e56fdc854a372c28 (diff) | |
Merge "[telecom] system_server should not call non forUser Settings.Secure.get* methods"
| -rw-r--r-- | telecomm/java/android/telecom/Logging/SessionManager.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/telecomm/java/android/telecom/Logging/SessionManager.java b/telecomm/java/android/telecom/Logging/SessionManager.java index 67e5eabf54eb..9d17219c1ae4 100644 --- a/telecomm/java/android/telecom/Logging/SessionManager.java +++ b/telecomm/java/android/telecom/Logging/SessionManager.java @@ -17,6 +17,7 @@ package android.telecom.Logging; import android.annotation.Nullable; +import android.content.ContentResolver; import android.content.Context; import android.os.Handler; import android.os.Looper; @@ -453,7 +454,9 @@ public class SessionManager { * perform a sweep to check and make sure that the session is still not incomplete (stale). */ private long getCleanupTimeout(Context context) { - return Settings.Secure.getLong(context.getContentResolver(), TIMEOUTS_PREFIX + - "stale_session_cleanup_timeout_millis", DEFAULT_SESSION_TIMEOUT_MS); + final ContentResolver cr = context.getContentResolver(); + return Settings.Secure.getLongForUser(cr, TIMEOUTS_PREFIX + + "stale_session_cleanup_timeout_millis", DEFAULT_SESSION_TIMEOUT_MS, + cr.getUserId()); } } |