diff --git a/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java b/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java index f074e031..664fd631 100644 --- a/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java +++ b/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java @@ -25,6 +25,7 @@ import java.util.Map; import javax.crypto.Cipher; import me.impy.aegis.AegisApplication; +import me.impy.aegis.BuildConfig; import me.impy.aegis.R; import me.impy.aegis.db.DatabaseEntry; import me.impy.aegis.db.DatabaseFileCredentials; @@ -172,6 +173,11 @@ public class PreferencesFragment extends PreferenceFragmentCompat implements Pas }); _slotsPreference = findPreference("pref_slots"); + if (BuildConfig.DEBUG) { + _slotsPreference.setVisible(true); + } else { + _slotsPreference.setVisible(false); + } _slotsPreference.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) {