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

Commit ed597586 authored by Christopher R. Palmer's avatar Christopher R. Palmer Committed by Ricardo Cerqueira
Browse files

UserTile: Fix displaying user information for multi-user devices

In commit 89ab0eb0, we improved
the handling of single user devices but appear to have also
entirely deleted the name / avatar for multi-user devices.

This commit restores the deleted code for multi-user devices.

This fixes CYAN-4023.

Change-Id: I69fe1504da2b32cd5bf0fdc87f8f78c960e9c77f
parent 4d1a5c9d
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);
            }