Fixed max connections setting being shown in release builds.

This commit is contained in:
Felix Ableitner 2015-08-23 14:42:53 +02:00
parent 578d8d9b76
commit 6ec9b949c5

View file

@ -54,7 +54,7 @@ class SettingsFragment extends PreferenceFragment with OnPreferenceChangeListene
scanInterval.setSummary(prefs.getString(
KeyScanInterval, getResources.getString(R.string.default_scan_interval)))
if (!BuildConfig.DEBUG) {
if (BuildConfig.DEBUG) {
maxConnections.setOnPreferenceChangeListener(this)
maxConnections.setSummary(prefs.getString(
MaxConnections, getResources.getString(R.string.default_max_connections)))