From 98faa1d5d540a7e4de4086ea11df3fd61b5c7ab9 Mon Sep 17 00:00:00 2001
From: lmw <125975490@qq.com>
Date: 星期三, 17 七月 2024 11:47:03 +0800
Subject: [PATCH] 将要取消游戏页面item的结果动画

---
 app/src/main/java/com/dollearn/student/ui/SplashActivity.kt |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/app/src/main/java/com/dollearn/student/ui/SplashActivity.kt b/app/src/main/java/com/dollearn/student/ui/SplashActivity.kt
index b03cd92..e9d0d3d 100644
--- a/app/src/main/java/com/dollearn/student/ui/SplashActivity.kt
+++ b/app/src/main/java/com/dollearn/student/ui/SplashActivity.kt
@@ -11,10 +11,9 @@
 import android.view.WindowManager
 import cn.sinata.xldutils.activity.BaseActivity
 import cn.sinata.xldutils.utils.SPUtils
-import com.amap.api.maps.MapsInitializer
 import com.dollearn.student.MainActivity
 import com.dollearn.student.R
-import com.dollearn.student.WeparkApplication
+import com.dollearn.student.DollearnApplication
 import com.dollearn.student.dialog.RuleDialog
 import com.dollearn.student.network.Apis
 import com.dollearn.student.network.HttpManager
@@ -42,23 +41,19 @@
         setContentView(R.layout.activity_splash)
         getImg()
         if (SPUtils.instance().getBoolean(Const.User.IS_AGREE)){
-            MapsInitializer.updatePrivacyShow(this@SplashActivity,true,true)
-            MapsInitializer.updatePrivacyAgree(this@SplashActivity,true)
             startNext()
         }else{
             val ruleDialog = RuleDialog()
             ruleDialog.setCallback(object :RuleDialog.OnClickCallback{
                 override fun onOk() {
-                    MapsInitializer.updatePrivacyAgree(this@SplashActivity,true)
                     startNext()
                 }
             })
-            MapsInitializer.updatePrivacyShow(this@SplashActivity,true,true)
             iv_img.postDelayed({
                 ruleDialog.show(supportFragmentManager,"rule")
             },500)
         }
-//        getSignInfo(this)
+        getSignInfo(this)
     }
 
     private fun getImg() {
@@ -114,7 +109,7 @@
      * 判断是否第一次启动
      */
     private fun startNext(){
-        (application as WeparkApplication).initSdk()
+        (application as DollearnApplication).initSdk()
 //        if (SPUtils.instance().getBoolean(Const.FIRST_LAUNCH,true)){ //第一次启动显示引导页
 //            HttpManager.querySystemSetByType(3).request(this,false,{_,data->
 //                val s = data?.optString("content")

--
Gitblit v1.7.1