summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2012-10-05 22:32:04 -0700
committerAdam Powell <adamp@google.com>2012-10-05 22:36:13 -0700
commit6f2a3d298205522f2e799800dace0e6c345dd4d3 (patch)
treec36a7d4348c5a39dd701b426ece473c995290b40 /core
parentd9c99124d4870361c7c1e28fb78adf245eb1305a (diff)
downloadframeworks_base-6f2a3d298205522f2e799800dace0e6c345dd4d3.zip
frameworks_base-6f2a3d298205522f2e799800dace0e6c345dd4d3.tar.gz
frameworks_base-6f2a3d298205522f2e799800dace0e6c345dd4d3.tar.bz2
Quick settings user display and switching
Load user information for the current user and display in quick settings tile. Name is pulled from the contacts DB from the "Me" profile, which will override the raw name on the system user if needed. Open the user switcher on the lock screen if this tile is clicked and there is more than one user registered on the system. If there is only one user, show the "Me" quick contact card. Darken the background protection behind the user's name on the QS tile layout so that it's readable against very light profile pic backgrounds. Bug 7175023 Bug 7257997 Change-Id: Ia1e7dd7af72dbd49113a827f9228e0a32e20a0dc
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/ContextImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/ContextImpl.java b/core/java/android/app/ContextImpl.java
index 59fa1e0..caabfbf 100644
--- a/core/java/android/app/ContextImpl.java
+++ b/core/java/android/app/ContextImpl.java
@@ -1702,8 +1702,8 @@ class ContextImpl extends Context {
throws NameNotFoundException {
if (packageName.equals("system") || packageName.equals("android")) {
final ContextImpl context = new ContextImpl(mMainThread.getSystemContext());
- context.mBasePackageName = mBasePackageName;
- context.mUser = user;
+ context.mRestricted = (flags & CONTEXT_RESTRICTED) == CONTEXT_RESTRICTED;
+ context.init(mPackageInfo, null, mMainThread, mResources, mBasePackageName, user);
return context;
}