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

Commit efb81fd1 authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Use themed context to inflate user switcher items" into sc-dev

parents 7f5d243a a4bd9a80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ public class UserDetailView extends PseudoGridView {
        public UserDetailItemView createUserDetailItemView(View convertView, ViewGroup parent,
                UserSwitcherController.UserRecord item) {
            UserDetailItemView v = UserDetailItemView.convertOrInflate(
                    mContext, convertView, parent);
                    parent.getContext(), convertView, parent);
            if (!item.isCurrent || item.isGuest) {
                v.setOnClickListener(this);
            } else {
+1 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ class UserDetailViewAdapterTest : SysuiTestCase() {
        mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE, mLayoutInflater)
        `when`(mLayoutInflater.inflate(anyInt(), any(ViewGroup::class.java), anyBoolean()))
                .thenReturn(mInflatedUserDetailItemView)
        `when`(mParent.context).thenReturn(mContext)
        adapter = UserDetailView.Adapter(mContext, mUserSwitcherController, uiEventLogger,
                falsingManagerFake)
        mPicture = UserIcons.convertToBitmap(mContext.getDrawable(R.drawable.ic_avatar_user))