스플래시와 메인 문자열 리소스화
This commit is contained in:
@@ -15,6 +15,7 @@ import com.google.firebase.remoteconfig.ktx.get
|
||||
import com.google.firebase.remoteconfig.ktx.remoteConfig
|
||||
import com.google.firebase.remoteconfig.ktx.remoteConfigSettings
|
||||
import kr.co.vividnext.sodalive.BuildConfig
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.base.BaseActivity
|
||||
import kr.co.vividnext.sodalive.base.SodaDialog
|
||||
import kr.co.vividnext.sodalive.common.Constants
|
||||
@@ -82,9 +83,9 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
|
||||
SodaDialog(
|
||||
activity = this@SplashActivity,
|
||||
layoutInflater = layoutInflater,
|
||||
title = "안내",
|
||||
desc = "서비스 점검중입니다.",
|
||||
confirmButtonTitle = "확인",
|
||||
title = getString(R.string.screen_splash_maintenance_title),
|
||||
desc = getString(R.string.screen_splash_maintenance_desc),
|
||||
confirmButtonTitle = getString(R.string.confirm),
|
||||
confirmButtonClick = { finish() }
|
||||
).show(screenWidth)
|
||||
} else {
|
||||
@@ -124,9 +125,9 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
|
||||
|
||||
private fun showUpdateDialog(isEssential: Boolean = false) {
|
||||
val desc = if (isEssential) {
|
||||
"필수 업데이트가 있습니다.\n업데이트 후 사용가능합니다."
|
||||
getString(R.string.screen_splash_update_required_desc)
|
||||
} else {
|
||||
"최신 업데이트가 있습니다.\n업데이트 하시겠습니까?"
|
||||
getString(R.string.screen_splash_update_optional_desc)
|
||||
}
|
||||
|
||||
val cancelButtonClick = if (!isEssential) {
|
||||
@@ -138,9 +139,9 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
|
||||
SodaDialog(
|
||||
activity = this,
|
||||
layoutInflater = layoutInflater,
|
||||
title = "업데이트",
|
||||
title = getString(R.string.screen_splash_update_title),
|
||||
desc = desc,
|
||||
confirmButtonTitle = "업데이트",
|
||||
confirmButtonTitle = getString(R.string.screen_splash_update_confirm),
|
||||
confirmButtonClick = {
|
||||
startActivity(
|
||||
Intent(
|
||||
@@ -153,7 +154,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(ActivitySplashBinding
|
||||
cancelButtonTitle = if (isEssential) {
|
||||
""
|
||||
} else {
|
||||
"다음에"
|
||||
getString(R.string.screen_splash_update_later)
|
||||
},
|
||||
cancelButtonClick = cancelButtonClick
|
||||
).show(screenWidth)
|
||||
|
||||
Reference in New Issue
Block a user