Parcourir la source

修复主页没有检查更新的问题

zengjiebin il y a 7 ans
Parent
commit
e8fa636aca

+ 2 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActMain.java

@@ -31,6 +31,7 @@ import com.sheep.gamegroup.util.DownloadUtil;
 import com.sheep.gamegroup.util.Jump2View;
 import com.sheep.gamegroup.util.ListUtil;
 import com.sheep.gamegroup.util.MainTab;
+import com.sheep.gamegroup.util.SysAppUtil;
 import com.sheep.gamegroup.util.TestUtil;
 import com.sheep.gamegroup.util.UMConfigUtils;
 import com.sheep.gamegroup.util.ViewUtil;
@@ -345,7 +346,7 @@ public class ActMain extends BaseActYmPermissionCheck {
             }
         } else {
             if (onResumeCount == 0 && !TestUtil.isDev()) {
-                Jump2View.getInstance().tryShowHalfScreenAd(ActMain.this, getContainer());
+                SysAppUtil.showVersionInfo(this, SpUtils.getIgnoreMd5(), integer -> Jump2View.getInstance().tryShowHalfScreenAd(ActMain.this, getContainer()));
             }
         }
         onResumeCount++;