ProfilePicutreView warning with Facebook Android SDK

I’m using the latest facebook SDK for android in order to display a list of users with their profile pictures. To do so, I use the following XML:

<com.facebook.login.widget.ProfilePictureView
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:id="@+id/shoplist_item_profile_pic"
     facebook:com_facebook_preset_size="small"
     />

On the list adapter, I set the id of each user on the list with:

holder.mProfilePic.setProfileId(parseUser.getString("facebookID"));

Now, the picutres load BUT I get the following warning for each one:

requestLayout() improperly called by android.widget.ImageView{…} during layout: running second layout
pass

What am I missing?


Source: facebook

Leave a Reply