|
@@ -18,6 +18,7 @@ import com.blankj.utilcode.util.LogUtils
|
|
|
import com.blankj.utilcode.util.ToastUtils
|
|
|
import com.develop.base.ext.background_drawable
|
|
|
import com.develop.base.ext.getModelNum
|
|
|
+import com.develop.base.ext.getNewTuya
|
|
|
import com.develop.base.ext.getSN
|
|
|
import com.develop.base.ext.isBrand062
|
|
|
import com.develop.base.ext.isNightTheme
|
|
@@ -646,7 +647,7 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
val result = FoodDataProvider.getUserDatabase().userInfoDao()
|
|
|
.queryFavoriteRecipes(CURRENT_USER_ID, it.number ?: "")
|
|
|
|
|
|
- if (baseSn.startsWith("011D")){
|
|
|
+ if (getNewTuya()){
|
|
|
if (isLike) {
|
|
|
binding.ivAddToFav.src = R.drawable.ic_like
|
|
|
} else {
|
|
@@ -666,7 +667,7 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
}
|
|
|
|
|
|
viewModel.addLikeLiveData.observe(this) {
|
|
|
- if (baseSn.startsWith("011")) {
|
|
|
+ if (getNewTuya()) {
|
|
|
recipesloadingDialog.removeSelf()
|
|
|
}
|
|
|
|
|
@@ -682,7 +683,7 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
|
|
|
|
|
|
viewModel.deleteLikeLiveData.observe(this) {
|
|
|
- if (baseSn.startsWith("011")) {
|
|
|
+ if (getNewTuya()) {
|
|
|
recipesloadingDialog.removeSelf()
|
|
|
}
|
|
|
|
|
@@ -1961,7 +1962,7 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
private fun recordRecipes() {
|
|
|
if (!isHistory) {
|
|
|
isHistory = true
|
|
|
- if (baseSn.startsWith("011")) {
|
|
|
+ if (getNewTuya()) {
|
|
|
recordRecipes = true
|
|
|
|
|
|
} else {
|
|
@@ -2099,7 +2100,7 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
}
|
|
|
|
|
|
//新版本涂鸦,需要SOURCE_TAG 都传 local ,不然 开始按钮会变 下载
|
|
|
- if (baseSn.startsWith("011D")){
|
|
|
+ if (getNewTuya()){
|
|
|
navigateTo(Screens.Cook.COOK_DETAIL) {
|
|
|
withString(
|
|
|
SOURCE_TAG, "local"
|