Commit 561db210 authored by Grigory Fedorov's avatar Grigory Fedorov

"Debug log" option is not shown if unavailable. #424

Debug log option is only available if application build with debuggable flag. It is not available on release builds.
parent f055558b
......@@ -13,7 +13,9 @@ public class DebugSettingsFragment extends android.preference.PreferenceFragment
addPreferencesFromResource(R.xml.preference_debug);
getPreferenceScreen().findPreference(getString(R.string.debug_log_key)).setEnabled(LogManager.isDebugable());
if (!LogManager.isDebugable()) {
getPreferenceScreen().removePreference(getPreferenceScreen().findPreference(getString(R.string.debug_log_key)));
}
PreferenceSummaryHelper.updateSummary(getPreferenceScreen());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment