mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
add a constant for displaying file names
This commit is contained in:
parent
1710590639
commit
6f2ef95b40
2 changed files with 9 additions and 0 deletions
|
@ -118,4 +118,12 @@ public class Config {
|
|||
public void setTreeUri(String uri) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ public class Constants {
|
|||
public static final String SHOW_HIDDEN_FOLDERS = "show_hidden_folders";
|
||||
public static final String AUTOPLAY_VIDEOS = "autoplay_videos";
|
||||
public static final String TREE_URI = "tree_uri";
|
||||
public static final String DISPLAY_FILE_NAMES = "display_file_names";
|
||||
|
||||
// sorting
|
||||
public static final int SORT_BY_NAME = 1;
|
||||
|
|
Loading…
Reference in a new issue