根据issues整理项目
This commit is contained in:
@ -1,13 +1,36 @@
|
||||
package com.gh.common.constant;
|
||||
|
||||
import com.gh.gamecenter.SplashScreenActivity;
|
||||
|
||||
|
||||
public final class Config {
|
||||
public class Config {
|
||||
|
||||
public static final String HOST = "http://api.ghzhushou.com/";
|
||||
public static final String PREFERENCE = "ghzhushou";
|
||||
|
||||
public static final boolean isShow = SplashScreenActivity.isShow;
|
||||
|
||||
private boolean isShow;
|
||||
|
||||
public boolean isShow() {
|
||||
return isShow;
|
||||
}
|
||||
|
||||
public void setShow(boolean show) {
|
||||
isShow = show;
|
||||
}
|
||||
|
||||
private static Config mInstance;
|
||||
|
||||
public Config() {
|
||||
|
||||
}
|
||||
|
||||
public static Config getInstance() {
|
||||
if (mInstance == null) {
|
||||
synchronized (Config.class) {
|
||||
if (mInstance == null) {
|
||||
mInstance = new Config();
|
||||
}
|
||||
}
|
||||
}
|
||||
return mInstance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user