This commit is contained in:
juntao
2021-01-25 09:45:15 +08:00
parent cce077de96
commit 5182d4cd8d
30 changed files with 1152 additions and 109 deletions

View File

@ -276,8 +276,8 @@ public class MainActivity extends BaseActivity {
SPUtils.setBoolean(Constants.SP_TOP_VIDEO_VOICE, true);
//恢复视频流非Wifi提醒
SPUtils.setBoolean(Constants.SP_NON_WIFI_TIPS, true);
//重置顶部视频播放进度
SPUtils.setString(Constants.SP_TOP_VIDEO_SCHEDULE, "");
//重置首页视频播放进度
SPUtils.setString(Constants.SP_HOME_VIDEO_PLAY_RECORD, "");
}
@Override
@ -383,7 +383,8 @@ public class MainActivity extends BaseActivity {
break;
case HOST_LAUNCH_SIMULATOR_GAME:
String json = getIntent().getStringExtra(EntranceUtils.KEY_GAME);
GameEntity gameEntity = GsonUtils.getGson().fromJson(json, new TypeToken<GameEntity>(){}.getType());
GameEntity gameEntity = GsonUtils.getGson().fromJson(json, new TypeToken<GameEntity>() {
}.getType());
DownloadEntity downloadEntity = SimulatorGameManager.findDownloadEntityByUrl(gameEntity.getApk().get(0).getUrl());
if (downloadEntity != null) {
File file = new File(downloadEntity.getPath());
@ -413,6 +414,7 @@ public class MainActivity extends BaseActivity {
/**
* 应用跳转
*
* @param packageName
*/
@SuppressLint("CheckResult")