根据issues整理项目

This commit is contained in:
huangzhuanghua
2016-09-06 18:15:41 +08:00
parent 6cbb033326
commit 4e392eeb14
65 changed files with 1224 additions and 2610 deletions

View File

@ -22,6 +22,7 @@ import com.gh.common.util.DisplayUtils;
import com.gh.common.util.PackageUtils;
import com.gh.common.util.RunningUtils;
import com.gh.common.util.Utils;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.MainActivity;
import com.gh.gamecenter.R;
import com.gh.gamecenter.eventbus.EBShowDialog;
@ -41,10 +42,13 @@ public class BaseActivity extends Activity {
private boolean isPause;
protected boolean isDestroy;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Utils.log(this.getClass().getSimpleName());
isDestroy = false;
AppController.getInstance().addActivity(this);
EventBus.getDefault().register(this);
}
@ -207,7 +211,7 @@ public class BaseActivity extends Activity {
PackageUtils.getPackageNameByPath(BaseActivity.this, showDialog.getPath()), showDialog.getPath());
startActivity(PackageUtils.getUninstallIntent(BaseActivity.this, showDialog.getPath()));
}
}, null);
});
}
}
}
@ -215,6 +219,7 @@ public class BaseActivity extends Activity {
@Override
protected void onDestroy() {
super.onDestroy();
isDestroy = true;
EventBus.getDefault().unregister(this);
}
@ -230,6 +235,7 @@ public class BaseActivity extends Activity {
super.onResume();
DataUtils.onResume(this);
isPause = false;
DownloadManager.getInstance(this).initGameMap();
}
}