1、更改部分下载类,未完成
2、@#&@*#
This commit is contained in:
@ -3,6 +3,7 @@ package com.gh.common.constant;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.preference.PreferenceManager;
|
||||
|
||||
import com.gh.gamecenter.BuildConfig;
|
||||
|
||||
@ -34,7 +35,7 @@ public class Config {
|
||||
|
||||
|
||||
public static boolean isShow(Context context) {
|
||||
SharedPreferences sp = context.getSharedPreferences(Config.PREFERENCE, Context.MODE_PRIVATE);
|
||||
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
return sp.getBoolean("isShow", true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user