Dola TENG 2 yıl önce
ebeveyn
işleme
ab0d58d8d6

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

@@ -153,6 +153,7 @@ class MainFragment : BaseFragment(R.layout.layout_fragment_main_yuki) {
                             Config.TIGER_DRAGON_APP_ID -> {
                             }
                             Config.Yuki_Live_APP_ID -> {
+                                doDownload(Config.Yuki_Live_DOWNLOAD, it.tokenData?.token)
                             }
                             Config.Lotto_Live_APP_ID -> {
                             }

+ 9 - 0
app/src/main/java/com/khmer9/wa855main/screen/main/SubModuleFragment.kt

@@ -160,6 +160,15 @@ class SubModuleFragment : BaseFragment(R.layout.layout_sub_module) {
                         Config.TIGER_DRAGON_APP_ID -> {
                         }
                         Config.Yuki_Live_APP_ID -> {
+                            (requireActivity() as ShareActivity).apply {
+                                val launchIntent = packageManager.getLaunchIntentForPackage(Config.Yuki_Live_PACKAGE)
+                                if (launchIntent != null) {
+                                    shareViewModel.getModuleToken(appId, launchIntent)
+                                } else {
+                                    shareViewModel.getModuleToken(appId, null)
+                                    //doDownload(LOTTO_PLUS_DOWNLOAD)
+                                }
+                            }
                         }
                         Config.Lotto_Live_APP_ID -> {
                         }