|
@@ -725,31 +725,34 @@ class CookDetailActivity : CommonBVMActivity<ActivityCookDetailBinding, CookDeta
|
|
|
binding.tvFoodName.movementMethod = ScrollingMovementMethod.getInstance()
|
|
|
binding.tvFoodName.isScrollbarFadingEnabled = false
|
|
|
val timeDescBuilder = StringBuilder()
|
|
|
- timeDescBuilder.append(
|
|
|
- if (sn.startsWith("011")) " " + getString(com.develop.common.R.string.preparation_011) else getString(
|
|
|
- com.develop.common.R.string.preparation
|
|
|
- )
|
|
|
- )
|
|
|
- timeDescBuilder.append(" ")
|
|
|
- if (detail.recipe.prepareHours.isPositive()) {
|
|
|
- timeDescBuilder.append(detail.recipe.prepareHours)
|
|
|
+ if (!sn.startsWith("011D")){
|
|
|
timeDescBuilder.append(
|
|
|
- if (sn.startsWith("011")) " " + getString(com.develop.common.R.string.hours_011) else getString(
|
|
|
- com.develop.common.R.string.hours
|
|
|
+ if (sn.startsWith("011")) " " + getString(com.develop.common.R.string.preparation_011) else getString(
|
|
|
+ com.develop.common.R.string.preparation
|
|
|
)
|
|
|
)
|
|
|
timeDescBuilder.append(" ")
|
|
|
- }
|
|
|
- if (detail.recipe.prepareMinutes.isPositive()) {
|
|
|
- timeDescBuilder.append(detail.recipe.prepareMinutes)
|
|
|
- timeDescBuilder.append(
|
|
|
- if (sn.startsWith("011")) " " + getString(com.develop.common.R.string.min_011) else getString(
|
|
|
- com.develop.common.R.string.min
|
|
|
+ if (detail.recipe.prepareHours.isPositive()) {
|
|
|
+ timeDescBuilder.append(detail.recipe.prepareHours)
|
|
|
+ timeDescBuilder.append(
|
|
|
+ if (sn.startsWith("011")) " " + getString(com.develop.common.R.string.hours_011) else getString(
|
|
|
+ com.develop.common.R.string.hours
|
|
|
+ )
|
|
|
+ )
|
|
|
+ timeDescBuilder.append(" ")
|
|
|
+ }
|
|
|
+ if (detail.recipe.prepareMinutes.isPositive()) {
|
|
|
+ timeDescBuilder.append(detail.recipe.prepareMinutes)
|
|
|
+ timeDescBuilder.append(
|
|
|
+ if (sn.startsWith("011")) " " + getString(com.develop.common.R.string.min_011) else getString(
|
|
|
+ com.develop.common.R.string.min
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
|
|
|
+ }
|
|
|
+ timeDescBuilder.append("\n")
|
|
|
}
|
|
|
- timeDescBuilder.append("\n")
|
|
|
+
|
|
|
timeDescBuilder.append(
|
|
|
if (sn.startsWith("011")) getString(com.develop.common.R.string.ready_in_011) else getString(
|
|
|
com.develop.common.R.string.ready_in
|