diff options
author | Adrian Roos <roosa@google.com> | 2014-12-01 14:19:05 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2014-12-01 13:21:49 +0000 |
commit | 844c92b444dca7f5ef4d0943fb14e2cbeee49701 (patch) | |
tree | ca62c2a2686a1ef3ce7f520905fcd3c206ffab19 /packages/SystemUI/src/com/android/systemui/qs | |
parent | 07b4a291319ec48a272451789ab0fbbf8d55a050 (diff) | |
download | frameworks_base-844c92b444dca7f5ef4d0943fb14e2cbeee49701.zip frameworks_base-844c92b444dca7f5ef4d0943fb14e2cbeee49701.tar.gz frameworks_base-844c92b444dca7f5ef4d0943fb14e2cbeee49701.tar.bz2 |
Refresh user list a little more eagerly
Unfortunately, we don't get a signal when user restrictions such as
for adding new users change. That means the user switcher UI could get
out of sync and showed the add user option when in fact it couldn't add one.
Also cleans up an unused method.
Bug: 18292723
Change-Id: I56f6f848d967d9d1c11bd6262eacbdb11f90cfe2
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java index c524edc..6bad652 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailView.java @@ -47,6 +47,10 @@ public class UserDetailView extends PseudoGridView { ViewGroupAdapterBridge.link(this, mAdapter); } + public void refreshAdapter() { + mAdapter.refresh(); + } + public static class Adapter extends UserSwitcherController.BaseUserAdapter implements OnClickListener { |