fix(chat): 최근 대화한 캐릭터
- 캐릭터 이미지 원형으로 변경
This commit is contained in:
		@@ -6,10 +6,9 @@ import android.view.LayoutInflater
 | 
			
		||||
import android.view.ViewGroup
 | 
			
		||||
import androidx.recyclerview.widget.RecyclerView
 | 
			
		||||
import com.bumptech.glide.Glide
 | 
			
		||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
 | 
			
		||||
import com.bumptech.glide.load.resource.bitmap.CircleCrop
 | 
			
		||||
import com.bumptech.glide.request.RequestOptions
 | 
			
		||||
import kr.co.vividnext.sodalive.databinding.ItemRecentCharacterBinding
 | 
			
		||||
import kr.co.vividnext.sodalive.extensions.dpToPx
 | 
			
		||||
 | 
			
		||||
class RecentCharacterAdapter(
 | 
			
		||||
    private var characters: List<RecentCharacter> = emptyList(),
 | 
			
		||||
@@ -25,10 +24,9 @@ class RecentCharacterAdapter(
 | 
			
		||||
            Glide.with(context)
 | 
			
		||||
                .load(character.imageUrl)
 | 
			
		||||
                .apply(
 | 
			
		||||
                    RequestOptions().transform(
 | 
			
		||||
                        RoundedCorners(
 | 
			
		||||
                            28f.dpToPx().toInt()
 | 
			
		||||
                        )
 | 
			
		||||
                    RequestOptions()
 | 
			
		||||
                        .transform(
 | 
			
		||||
                            CircleCrop()
 | 
			
		||||
                        )
 | 
			
		||||
                )
 | 
			
		||||
                .into(binding.ivProfile)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user