Skip to content

Commit

Permalink
[FIX/#458] admob 보상형 광고 서버 null 처리방법 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Jul 30, 2024
1 parent 02c9c43 commit d3c8069
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class PayActivity : BindingActivity<ActivityPayBinding>(R.layout.activity_pay) {

is UiState.Failure -> {
stopLoadingScreen(AD)
toast(getString(R.string.internet_connection_error_msg))
toast(getString(R.string.pay_ad_error_msg))
}

is UiState.Loading -> startLoadingScreen(AD)
Expand Down Expand Up @@ -450,7 +450,7 @@ class PayActivity : BindingActivity<ActivityPayBinding>(R.layout.activity_pay) {
window?.clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE)
}

private fun setBackPressedWhenLoading(){
private fun setBackPressedWhenLoading() {
val callback = object : OnBackPressedCallback(true) {
override fun handleOnBackPressed() {
if (!manager.isPurchasing.value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ class PayViewModel @Inject constructor(
)
)
.onSuccess { reward ->
if (reward == null) {
_postRewardAdState.value = UiState.Failure(toString())
} else {
_postRewardAdState.value = UiState.Success(reward)
}
_postRewardAdState.value = UiState.Success(reward)
}
.onFailure {
_postRewardAdState.value = UiState.Failure(it.message.orEmpty())
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@
<string name="pay_ad_vote_for_point_reward_title">10 포인트를 얻었어요!</string>
<string name="pay_ad_vote_for_point_reward_subtitle">1시간 뒤에 다시 이용 가능해요.</string>
<string name="pay_ad_fail_to_load">광고 조회에 실패했습니다.</string>
<string name="pay_ad_error_msg">일시적인 오류가 발생했습니다. 고객센터로 문의해주세요.</string>

<string name="pay_tv_guide_title">옐로플러스 구독 안내</string>
<string name="pay_tv_guide_body_1">- 결제를 진행하시면 관련 약관에 동의하는 것으로 간주됩니다.</string>
Expand Down

0 comments on commit d3c8069

Please sign in to comment.