整理Activity入口(还有部分未检查)

This commit is contained in:
kehaoyuan
2017-09-20 20:01:07 +08:00
parent 573e127fc7
commit d6d49ac7ad
19 changed files with 104 additions and 121 deletions

View File

@ -14,10 +14,9 @@ import com.gh.common.util.PackageUtils;
import com.gh.common.util.RunningUtils;
import com.gh.common.util.ShareUtils;
import com.gh.common.util.StringUtils;
import com.gh.gamecenter.MainActivity;
import com.gh.gamecenter.LoginActivity;
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;
@ -144,10 +143,7 @@ public abstract class BaseActivity extends BaseAppCompatToolBarActivity implemen
, null, new DialogUtils.CancelListener() {
@Override
public void onCancel() {
EventBus.getDefault().post(new EBSkip(MainActivity.EB_SKIP_GAMEFRAGMENT, 2));
if (!MainActivity.class.getName().equals(RunningUtils.getTopActivity(BaseActivity.this))) {
finish();
}
startActivity(LoginActivity.getIntent(BaseActivity.this, false));
}
});
} catch (JSONException e) {