Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5599a865 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "UserTile: Fix displaying user information for multi-user devices" into cm-11.0

parents 5d89ef90 8842fb63
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -177,7 +177,16 @@ public class UserTile extends QuickSettingsTile {
                            }
                        }
                    }
                } else {
                    name = userName;
                    Bitmap rawAvatar = um.getUserIcon(userId);
                    if (rawAvatar != null) {
                        avatar = new BitmapDrawable(mContext.getResources(), rawAvatar);
                    } else {
                        avatar = mContext.getResources().getDrawable(R.drawable.ic_qs_default_user);
                    }
                }

                return new Pair<String, Drawable>(name, avatar);
            }