summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/Prefs.java
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2020-08-13 11:33:47 -0400
committerFabian Kozynski <kozynski@google.com>2020-08-24 10:39:45 -0400
commit0a7e5b85ae81d55eec8f9d2cfe5f69bf3f0503fc (patch)
tree29dd2bde5986551acc0f8e2bf93a7c6312f84bda /packages/SystemUI/src/com/android/systemui/Prefs.java
parentd2e2eda8a23800b0043ca8b20619ac15e21defcc (diff)
Implement UserTracker
This implements a new UserTracker for SystemUI that is meant to centralize information about current user and current profiles. It will serve the same function as CurrentUserContextTracker (replaced), CurrentUserTracker (to be removed), and ACTION_USER_SWITCHED broadcasts (to be removed). It'll also serve to remove all other calls to ActivityManager.getCurrentUser(). Test: SystemUITests Test: manual Bug: 163579262 Change-Id: I6a7251485d88ce9b9131b9aff3b4343c3e8c823b
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Prefs.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/Prefs.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Prefs.java b/packages/SystemUI/src/com/android/systemui/Prefs.java
index d1149d37d431..f4c865e1d131 100644
--- a/packages/SystemUI/src/com/android/systemui/Prefs.java
+++ b/packages/SystemUI/src/com/android/systemui/Prefs.java
@@ -21,7 +21,7 @@ import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
-import com.android.systemui.settings.CurrentUserContextTracker;
+import com.android.systemui.settings.UserContextProvider;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@@ -38,7 +38,7 @@ import java.util.Set;
*
* NOTE: Clients of this class should take care to pass in the correct user context when querying
* settings, otherwise you will always read/write for user 0 which is almost never what you want.
- * See {@link CurrentUserContextTracker} for a simple way to get the current context
+ * See {@link UserContextProvider} for a simple way to get the current context
*/
public final class Prefs {
private Prefs() {} // no instantation