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

Commit b4b0207e authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Android (Google) Code Review
Browse files

Merge "Add javadoc about lifecycles for xml defined Controllers." into sc-dev

parents f760ea06 712035ef
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.text.TextUtils;
import android.util.Log;

import androidx.annotation.Nullable;
import androidx.lifecycle.LifecycleObserver;
import androidx.preference.Preference;
import androidx.preference.PreferenceScreen;

@@ -38,6 +39,7 @@ import com.android.settings.slices.SettingsSliceProvider;
import com.android.settings.slices.SliceData;
import com.android.settings.slices.Sliceable;
import com.android.settingslib.core.AbstractPreferenceController;
import com.android.settingslib.core.lifecycle.Lifecycle;
import com.android.settingslib.search.SearchIndexableRaw;

import java.lang.annotation.Retention;
@@ -50,6 +52,9 @@ import java.util.List;
 * Abstract class to consolidate utility between preference controllers and act as an interface
 * for Slices. The abstract classes that inherit from this class will act as the direct interfaces
 * for each type when plugging into Slices.
 * <p>
 * Controllers defined in xml are automatically {@link Lifecycle#addObserver(LifecycleObserver)
 * wired up} to the settings lifecycle if they implement {@link LifecycleObserver}.
 */
public abstract class BasePreferenceController extends AbstractPreferenceController implements
        Sliceable {