Dola TENG 2 anos atrás
pai
commit
048cf51369

+ 4 - 1
app/src/main/java/com/khmer9/wa855main/screen/main/MainFragment.kt

@@ -150,8 +150,11 @@ class MainFragment : BaseFragment(R.layout.layout_fragment_main_yuki) {
                             Config.CARD_APP_ID -> {
                                 doDownload(Config.CARD_DOWNLOAD, it.tokenData?.token)
                             }
+                            Config.TIGER_DRAGON_APP_ID -> {
+                            }
                             Config.Yuki_Live_APP_ID -> {
-                                //doDownload(Config.CARD_DOWNLOAD, it.tokenData?.token)
+                            }
+                            Config.Lotto_Live_APP_ID -> {
                             }
                         }
 

+ 7 - 1
app/src/main/java/com/khmer9/wa855main/screen/main/MainModuleViewHolder.kt

@@ -175,7 +175,7 @@ class MainModuleViewHolder(itemView: View, private val detailButtonListener: ((S
 
                         backgroundModule.setBackgroundResource(R.drawable.bg11)
                     }
-                    Config.Yuki_Live_APP_NAME.trim().toLowerCase() -> {
+                    Config.TIGER_DRAGON_APP_NAME.trim().toLowerCase() -> {
                         picasso
                             .load(R.drawable.ic_dragontiger)
                             .placeholder(R.drawable.ic_dragontiger)
@@ -183,6 +183,12 @@ class MainModuleViewHolder(itemView: View, private val detailButtonListener: ((S
 
                         backgroundModule.setBackgroundResource(R.drawable.yukibg)
                     }
+                    Config.Yuki_Live_APP_NAME.trim().toLowerCase() -> {
+                        backgroundModule.setBackgroundResource(R.drawable.yukibg)
+                    }
+                    Config.Lotto_Live_APP_NAME.trim().toLowerCase() -> {
+                        backgroundModule.setBackgroundResource(R.drawable.yukibg)
+                    }
                     else -> {
                         picasso
                             .load(item.smallIcon)

+ 4 - 1
app/src/main/java/com/khmer9/wa855main/screen/main/SubModuleFragment.kt

@@ -157,8 +157,11 @@ class SubModuleFragment : BaseFragment(R.layout.layout_sub_module) {
                                 }
                             }
                         }
+                        Config.TIGER_DRAGON_APP_ID -> {
+                        }
                         Config.Yuki_Live_APP_ID -> {
-
+                        }
+                        Config.Lotto_Live_APP_ID -> {
                         }
                     }
                 }