package net.micode.fileexplorer;
/**
* 一个类,只建立一个实例,不是线程安全的。
* 单实例设置工具类,保存1个选项,是否显示隐藏文件和上级目录“.”
*/
public class Settings {
// whether show system and cache images, default not
private boolean mShowDotAndHiddenFiles;
private static Settings mInstance;
private Settings() {
}
public static Settings instance() {
if(mInstance == null) {
mInstance = new Settings();
}
return mInstance;
}
public boolean getShowDotAndHiddenFiles() {
return mShowDotAndHiddenFiles;
}
public void setShowDotAndHiddenFiles(boolean s) {
mShowDotAndHiddenFiles = s;
}
}