This commit is contained in:
Jack
2020-05-08 18:08:47 +08:00
parent 60f21f6113
commit b59a169e10
12 changed files with 98 additions and 61 deletions

View File

@ -35,6 +35,7 @@ import com.gh.common.util.SPUtils;
import com.gh.common.util.TagUtils;
import com.gh.common.util.UsageStatsHelper;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.entity.AuthDialogEntity;
import com.gh.gamecenter.entity.PrivacyPolicyEntity;
import com.gh.gamecenter.manager.FilterManager;
import com.gh.gamecenter.retrofit.BiResponse;
@ -138,6 +139,7 @@ public class SplashScreenActivity extends BaseActivity {
Config.getGhzsSettings();
deviceDialogSetting();
getFilterDetailTags();
getAuthDialog();
UsageStatsHelper.checkAndPostUsageStats();
GameRepositoryHelper.getGameRepository(this);
@ -197,6 +199,19 @@ public class SplashScreenActivity extends BaseActivity {
});
}
private void getAuthDialog(){
RetrofitManager.getInstance(HaloApp.getInstance().getApplication())
.getApi()
.authDialog()
.subscribe(new Response<List<AuthDialogEntity>>(){
@Override
public void onResponse(@Nullable List<AuthDialogEntity> response) {
super.onResponse(response);
SPUtils.setString(Constants.SP_AUTH_DIALOG, GsonUtils.toJson(response));
}
});
}
@SuppressLint("CheckResult")
private void showPrivacyPolicy(EmptyCallback callback) {
RetrofitManager.getInstance(this).getApi()