瀏覽代碼

提交人:jtm
提交内容:优化

江天明 11 月之前
父節點
當前提交
3d5fb7e59c

+ 3 - 3
BusinessAuth/src/main/java/com/develop/auth/ui/MemberProfileFragment.kt

@@ -114,17 +114,17 @@ class MemberProfileFragment : CommonBVMFragment<FragmentMemberProfileBinding, Me
                     when (selectGender) {
                         2 -> {
                             binding.tvChooseSex.text = "Male"
-                            binding.tvChooseAge.setTextColor(Color.BLACK)
+                            binding.tvChooseSex.setTextColor(Color.BLACK)
                         }
 
                         1 -> {
                             binding.tvChooseSex.text = "Female"
-                            binding.tvChooseAge.setTextColor(Color.BLACK)
+                            binding.tvChooseSex.setTextColor(Color.BLACK)
                         }
 
                         0 -> {
                             binding.tvChooseSex.text = "None"
-                            binding.tvChooseAge.setTextColor(Color.BLACK)
+                            binding.tvChooseSex.setTextColor(Color.BLACK)
                         }
                     }
                     if (selectAge > 0) {

+ 0 - 3
BusinessCommon/src/main/java/com/develop/common/dialog/GenderSelectDialog.kt

@@ -34,7 +34,6 @@ class GenderSelectDialog(
             binding.tvSelectMale.isSelected = false
             binding.tvSelectNo.isSelected  =true
             onSelect(0)
-            removeSelf()
         }
 
         binding.tvSelectMale.setOnClickListener {
@@ -42,14 +41,12 @@ class GenderSelectDialog(
             binding.tvSelectMale.isSelected = true
             binding.tvSelectNo.isSelected  =false
             onSelect(2)
-            removeSelf()
         }
         binding.tvSelectFemale.setOnClickListener {
             binding.tvSelectFemale.isSelected = true
             binding.tvSelectMale.isSelected = false
             binding.tvSelectNo.isSelected  =false
             onSelect(1)
-            removeSelf()
         }
         binding.tvSelectNo.isSelected = true
         return binding.root

+ 40 - 40
BusinessStep/src/main/java/com/develop/step/ui/recipes_detail/CookEvaluateActivity.kt

@@ -85,46 +85,46 @@ class CookEvaluateActivity : CommonBindingActivity<ActivityCookEvaluateBinding>(
         }
 
 
-        safeGlobalScope.launch(Dispatchers.IO) {
-            val userTag = FoodDataProvider.getUserDatabase().userInfoDao().queryUserTag(
-                CURRENT_USER_ID, recipeId ?: ""
-            )
-            val recipes = FoodDataProvider.getDatabase().recipeDao().queryRecipe(recipeId)
-            val count1 = userTag?.starCount ?: 0
-            val count2 = recipes?.score?.toInt() ?: 0
-            starCount = if (count1 != 0) {
-                count1
-            } else if (count2 != 0) {
-                count2
-            } else {
-                0
-            }
-            withMain {
-                selectStar(starCount)
-                when (starCount) {
-                    1 -> {
-                        binding.tvGood.text = getString(R.string.bad)
-                    }
-
-                    2 -> {
-                        binding.tvGood.text = getString(R.string.imperfect)
-                    }
-
-                    3 -> {
-                        binding.tvGood.text = getString(R.string.ordinary)
-                    }
-
-                    4 -> {
-                        binding.tvGood.text = getString(R.string.good)
-                    }
-
-                    5 -> {
-                        binding.tvGood.text = getString(R.string.perfect)
-                    }
-                }
-                binding.etContent.setText(userTag?.daily)
-            }
-        }
+//        safeGlobalScope.launch(Dispatchers.IO) {
+//            val userTag = FoodDataProvider.getUserDatabase().userInfoDao().queryUserTag(
+//                CURRENT_USER_ID, recipeId ?: ""
+//            )
+//            val recipes = FoodDataProvider.getDatabase().recipeDao().queryRecipe(recipeId)
+//            val count1 = userTag?.starCount ?: 0
+//            val count2 = recipes?.score?.toInt() ?: 0
+//            starCount = if (count1 != 0) {
+//                count1
+//            } else if (count2 != 0) {
+//                count2
+//            } else {
+//                0
+//            }
+//            withMain {
+//                selectStar(starCount)
+//                when (starCount) {
+//                    1 -> {
+//                        binding.tvGood.text = getString(R.string.bad)
+//                    }
+//
+//                    2 -> {
+//                        binding.tvGood.text = getString(R.string.imperfect)
+//                    }
+//
+//                    3 -> {
+//                        binding.tvGood.text = getString(R.string.ordinary)
+//                    }
+//
+//                    4 -> {
+//                        binding.tvGood.text = getString(R.string.good)
+//                    }
+//
+//                    5 -> {
+//                        binding.tvGood.text = getString(R.string.perfect)
+//                    }
+//                }
+//                binding.etContent.setText(userTag?.daily)
+//            }
+//        }
 
 
         binding.tvOk.setOnClickListener {

+ 0 - 2
app/build.gradle

@@ -144,9 +144,7 @@ android {
         brand030A {
             dimension "platform"
             applicationId "com.develop.foodcooking"
-            buildConfigField("String", "UpdatePlatform", "\"036I\"")
             resValue("string", "app_theme", "@style/SplashTheme")
-            resValue("string", "app_theme", "@style/Splash036IDTheme")
             buildConfigField("String", "UpdatePlatform", "\"normal\"")
         }