完善礼包最新页面(未完成), 9.5测试需求

This commit is contained in:
kehaoyuan
2017-09-06 17:00:59 +08:00
parent 0bcd37c1f1
commit 5c8072cc9e
11 changed files with 68 additions and 21 deletions

View File

@ -1,6 +1,5 @@
package com.gh.base;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
@ -15,10 +14,10 @@ import com.gh.common.util.RunningUtils;
import com.gh.common.util.ShareUtils;
import com.gh.common.util.StringUtils;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.LoginActivity;
import com.gh.gamecenter.MainActivity;
import com.gh.gamecenter.R;
import com.gh.gamecenter.eventbus.EBShowDialog;
import com.gh.gamecenter.eventbus.EBSkip;
import com.lightgame.download.FileUtils;
import com.lightgame.utils.AppManager;
import com.readystatesoftware.systembartint.SystemBarTintManager.SystemBarConfig;
@ -142,12 +141,10 @@ public abstract class BaseActivity extends BaseAppCompatToolBarActivity {
, null, new DialogUtils.CancelListener() {
@Override
public void onCancel() {
// TODO 未测试
EventBus.getDefault().post(new EBSkip(MainActivity.EB_SKIP_GAMEFRAGMENT, 2));
if (!MainActivity.class.getName().equals(RunningUtils.getTopActivity(BaseActivity.this))) {
finish();
}
Intent intent = LoginActivity.getIntent(BaseActivity.this, false);
startActivity(intent);
}
});
} catch (JSONException e) {