Browse Source

提交人:jtm
提交内容:002D主页UI

江天明 1 year ago
parent
commit
39c02b301c

+ 15 - 1
BusinessCommon/src/main/java/com/develop/common/data_repo/db/DataFactory.kt

@@ -431,6 +431,13 @@ object DataFactory {
         R.string.manual_cooking,
         R.string.download_new_recipes
     )
+
+    private var title002dStrIds = mutableListOf<Int>(
+        R.string.automatic_programmes,
+        R.string.manual_cooking,
+        R.string.automatic_recipes,
+        R.string.download_new_recipes
+    )
     private var title2StrIds = mutableListOf<Int>(
         R.string.Automatic_recipes,
         R.string.Automatic_programmes,
@@ -447,6 +454,13 @@ object DataFactory {
     )
 
 
+    private var type2List = mutableListOf<EntranceType>(
+        EntranceType.automatic_programmes,
+        EntranceType.manual_cooking,
+        EntranceType.automatic_recipes,
+        EntranceType.download_new_recipes
+    )
+
     private var bgResIds1 = arrayListOf<Int>(
         R.drawable.entrance_bg_1,
         R.drawable.entrance_bg_3,
@@ -510,7 +524,7 @@ object DataFactory {
         for (i in iconResIds.indices) {
             dataList.add(
                 EntranceData(
-                    bg036IResIds[i], icon002DResIds[i], titleStrIds[i], title2StrIds[i], typeList[i]
+                    bg036IResIds[i], icon002DResIds[i], title002dStrIds[i], title2StrIds[i], type2List[i]
                 )
             )
         }