Hide testing preferences in release builds.

This commit is contained in:
akwizgran
2018-05-17 15:14:35 +01:00
parent 97f4cd039a
commit 651e0b9859

View File

@@ -157,6 +157,8 @@ public class SettingsFragment extends PreferenceFragmentCompat
}
);
} else {
findPreference("pref_key_explode").setVisible(false);
findPreference("pref_key_test_data").setVisible(false);
PreferenceGroup testing =
findPreference("pref_key_explode").getParent();
if (testing == null) throw new AssertionError();