欢迎页优化
This commit is contained in:
@@ -9,6 +9,8 @@ import com.dahe.mylibrary.utils.BaseSPUtils;
|
||||
|
||||
public class SPUtils extends BaseSPUtils {
|
||||
|
||||
private static final String PRE_WEL_PIC = "PRE_WEL_PIC";
|
||||
|
||||
/**
|
||||
* 存用户信息
|
||||
*
|
||||
@@ -111,4 +113,22 @@ public class SPUtils extends BaseSPUtils {
|
||||
return b;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存欢迎页网络地址
|
||||
* @param context
|
||||
* @param url
|
||||
*/
|
||||
public static void setPreWelPic(Context context, String url){
|
||||
put(context,PRE_WEL_PIC,url);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取欢迎页地址
|
||||
* @param context
|
||||
* @return
|
||||
*/
|
||||
public static String getPreWelPic(Context context){
|
||||
return (String) get(context,PRE_WEL_PIC,"");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user