修改主页轮播点的位置以及大小,修改引导页的启动模式
This commit is contained in:
@ -70,7 +70,6 @@ import com.gh.gamecenter.news.NewsFragment;
|
||||
import com.gh.gamecenter.personal.PersonalFragment;
|
||||
import com.gh.gamecenter.volley.extended.JsonArrayExtendedRequest;
|
||||
import com.gh.gamecenter.volley.extended.JsonObjectExtendedRequest;
|
||||
import com.gh.gamecenter.volley.extended.StringExtendedRequest;
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
|
||||
@ -411,15 +410,15 @@ public class MainActivity extends BaseFragmentActivity implements
|
||||
|
||||
sp = getSharedPreferences(Config.PREFERENCE, Context.MODE_PRIVATE);
|
||||
|
||||
if (!sp.getBoolean("isFirstLaunch", true)
|
||||
if (!sp.getBoolean("isNewsFirstLaunch", true)
|
||||
&& sp.getBoolean("autoupdate", true)) {
|
||||
checkUpdate();
|
||||
}
|
||||
|
||||
if (sp.getBoolean("isFirstLaunch", true)) {
|
||||
if (sp.getBoolean("isNewsFirstLaunch", true)) {
|
||||
getPluginUpdate();
|
||||
getDisclaimer(true);
|
||||
sp.edit().putBoolean("isFirstLaunch", false).apply();
|
||||
sp.edit().putBoolean("isNewsFirstLaunch", false).apply();
|
||||
} else {
|
||||
getDisclaimer(false);
|
||||
handler.postDelayed(runnable, 500);
|
||||
|
||||
Reference in New Issue
Block a user