From 6f2ef95b40364a75de3e84a486f99ee27ffcefd4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 10 Nov 2016 20:20:29 +0100 Subject: [PATCH] add a constant for displaying file names --- .../main/java/com/simplemobiletools/gallery/Config.java | 8 ++++++++ .../java/com/simplemobiletools/gallery/Constants.java | 1 + 2 files changed, 9 insertions(+) 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;