add a constant for displaying file names

This commit is contained in:
tibbi 2016-11-10 20:20:29 +01:00
parent 1710590639
commit 6f2ef95b40
2 changed files with 9 additions and 0 deletions

View file

@ -118,4 +118,12 @@ public class Config {
public void setTreeUri(String uri) { public void setTreeUri(String uri) {
mPrefs.edit().putString(Constants.TREE_URI, uri).apply(); mPrefs.edit().putString(Constants.TREE_URI, uri).apply();
} }
public boolean getDisplayFileNames() {
return mPrefs.getBoolean(Constants.DISPLAY_FILE_NAMES, false);
}
public void setDisplayFileNames(boolean display) {
mPrefs.edit().putBoolean(Constants.DISPLAY_FILE_NAMES, display).apply();
}
} }

View file

@ -19,6 +19,7 @@ public class Constants {
public static final String SHOW_HIDDEN_FOLDERS = "show_hidden_folders"; public static final String SHOW_HIDDEN_FOLDERS = "show_hidden_folders";
public static final String AUTOPLAY_VIDEOS = "autoplay_videos"; public static final String AUTOPLAY_VIDEOS = "autoplay_videos";
public static final String TREE_URI = "tree_uri"; public static final String TREE_URI = "tree_uri";
public static final String DISPLAY_FILE_NAMES = "display_file_names";
// sorting // sorting
public static final int SORT_BY_NAME = 1; public static final int SORT_BY_NAME = 1;