diff --git a/app/src/main/java/com/simplemobiletools/gallery/Config.java b/app/src/main/java/com/simplemobiletools/gallery/Config.java index efc9bf880..19516648f 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/Config.java +++ b/app/src/main/java/com/simplemobiletools/gallery/Config.java @@ -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(); + } } diff --git a/app/src/main/java/com/simplemobiletools/gallery/Constants.java b/app/src/main/java/com/simplemobiletools/gallery/Constants.java index 70eb11b92..0bf0736f6 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/Constants.java +++ b/app/src/main/java/com/simplemobiletools/gallery/Constants.java @@ -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;