Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8211ea1 authored by Tom O'Neill's avatar Tom O'Neill
Browse files

Add a little comment about the enabled value

Change-Id: I4ac0b864f55992242b6a3b0d8ffb328f23f6b645
parent 83208e34
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -176,8 +176,15 @@ public abstract class SettingInjectorService extends IntentService {


        /**
        /**
         * Constructor.
         * Constructor.
         *
         * <p/>
         * @param summary the {@link Preference#getSummary()} value
         * Note that to prevent churn in the settings list, there is no support for dynamically
         * choosing to hide a setting. Instead you should provide a {@code enabled} value of false,
         * which will gray the setting out and disable the link from "Settings > Location"
         * to your setting activity. One reason why you might choose to do this is if
         * {@link android.provider.Settings.Secure#getLocationMode(android.content.ContentResolver)}
         * is {@link android.provider.Settings.Secure#LOCATION_MODE_OFF}.
         *
         * @param summary the {@link Preference#getSummary()} value (allowed to be null or empty)
         * @param enabled the {@link Preference#isEnabled()} value
         * @param enabled the {@link Preference#isEnabled()} value
         */
         */
        public Status(String summary, boolean enabled) {
        public Status(String summary, boolean enabled) {