feat: 콘텐츠 상세 - 포인트가 사용 가능한 경우 커버이미지 우측 상단에 포인트 아이콘으로 표시
This commit is contained in:
		@@ -351,7 +351,8 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
 | 
			
		||||
                    if (viewModel.audioContentLiveData.value!!.isAvailablePin) {
 | 
			
		||||
                        viewModel.pinContent(audioContentId)
 | 
			
		||||
                    } else {
 | 
			
		||||
                        SodaDialog(this@AudioContentDetailActivity,
 | 
			
		||||
                        SodaDialog(
 | 
			
		||||
                            this@AudioContentDetailActivity,
 | 
			
		||||
                            layoutInflater,
 | 
			
		||||
                            "고정 한도 도달",
 | 
			
		||||
                            "이 콘텐츠를 고정하시겠어요? " +
 | 
			
		||||
@@ -846,6 +847,12 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
 | 
			
		||||
        } else if (response.releaseDate == null) {
 | 
			
		||||
            binding.tvPreviewNo.visibility = View.VISIBLE
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        binding.ivPoint.visibility = if (response.isAvailableUsePoint) {
 | 
			
		||||
            View.VISIBLE
 | 
			
		||||
        } else {
 | 
			
		||||
            View.GONE
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @SuppressLint("SetTextI18n")
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,8 @@ data class GetAudioContentDetailResponse(
 | 
			
		||||
    @SerializedName("creator") val creator: AudioContentCreator,
 | 
			
		||||
    @SerializedName("previousContent") val previousContent: OtherContentResponse?,
 | 
			
		||||
    @SerializedName("nextContent") val nextContent: OtherContentResponse?,
 | 
			
		||||
    @SerializedName("buyerList") val buyerList: List<ContentBuyer>
 | 
			
		||||
    @SerializedName("buyerList") val buyerList: List<ContentBuyer>,
 | 
			
		||||
    @SerializedName("isAvailableUsePoint") val isAvailableUsePoint: Boolean
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@Keep
 | 
			
		||||
 
 | 
			
		||||
@@ -180,6 +180,17 @@
 | 
			
		||||
                        android:textColor="@color/white"
 | 
			
		||||
                        android:textSize="36.7sp"
 | 
			
		||||
                        android:visibility="gone" />
 | 
			
		||||
 | 
			
		||||
                    <ImageView
 | 
			
		||||
                        android:id="@+id/iv_point"
 | 
			
		||||
                        android:layout_width="wrap_content"
 | 
			
		||||
                        android:layout_height="wrap_content"
 | 
			
		||||
                        android:layout_alignParentEnd="true"
 | 
			
		||||
                        android:layout_marginTop="13.3dp"
 | 
			
		||||
                        android:layout_marginEnd="13.3dp"
 | 
			
		||||
                        android:contentDescription="@null"
 | 
			
		||||
                        android:src="@drawable/ic_point"
 | 
			
		||||
                        android:visibility="gone" />
 | 
			
		||||
                </RelativeLayout>
 | 
			
		||||
 | 
			
		||||
                <androidx.constraintlayout.widget.ConstraintLayout
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user