Commit f614a90a by sikang

origin/master

parent 59495c86
...@@ -18,8 +18,13 @@ public class PluginConfig { ...@@ -18,8 +18,13 @@ public class PluginConfig {
public static void init(Application application) { public static void init(Application application) {
context = application; context = application;
SharedPreferences sp = context.getSharedPreferences(DeviceInfo.SP_NAME, Context.MODE_PRIVATE); isSafeDevice(context);
}
public static boolean isSafeDevice(Context ctx) {
SharedPreferences sp = ctx.getSharedPreferences(DeviceInfo.SP_NAME, Context.MODE_PRIVATE);
IS_SAFE_DEVICE = sp.getBoolean(DeviceInfo.IS_SAFE_DEVICE, false); IS_SAFE_DEVICE = sp.getBoolean(DeviceInfo.IS_SAFE_DEVICE, false);
return IS_SAFE_DEVICE;
} }
public static Context getContext() { public static Context getContext() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment