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

Commit b33a59b8 authored by Arc Wang's avatar Arc Wang
Browse files

[Wi-Fi] Add object comments for WifiTrackerLib migration

Migrating from Wi-Fi SettingsLib to to WifiTrackerLib, there are
both some Settings files of both version. Developers should
develop on new version files.

Bug: 152571756
Test: compile
Change-Id: I4446e2e333663bf69daa1ceff102775889021851
parent 44121a7a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -38,6 +38,9 @@ import com.android.settingslib.wifi.AccessPoint;
 *
 * The AccessPoint should be saved to the argument when launching this class in order to properly
 * render this page.
 *
 * Migrating from Wi-Fi SettingsLib to to WifiTrackerLib, this object will be removed in the near
 * future, please develop in {@link ConfigureWifiEntryFragment}.
 */
public class ConfigureAccessPointFragment extends InstrumentedFragment implements WifiConfigUiBase {

+4 −1
Original line number Diff line number Diff line
@@ -27,7 +27,10 @@ import com.android.settings.R;
import com.android.settingslib.wifi.AccessPoint;

/**
 * An AP preference for the currently connected AP
 * An AP preference for the currently connected AP.
 *
 * Migrating from Wi-Fi SettingsLib to to WifiTrackerLib, this object will be removed in the near
 * future, please develop in {@link ConnectedWifiEntryPreference}.
 */
public class ConnectedAccessPointPreference extends LongPressAccessPointPreference implements
        View.OnClickListener {
+6 −0
Original line number Diff line number Diff line
@@ -23,6 +23,12 @@ import androidx.preference.PreferenceViewHolder;
import com.android.settingslib.wifi.AccessPoint;
import com.android.settingslib.wifi.AccessPointPreference;

/**
 * An AP preference for the currently connected AP.
 *
 * Migrating from Wi-Fi SettingsLib to to WifiTrackerLib, this object will be removed in the near
 * future, please develop in {@link com.android.settingslib.wifi.LongPressWifiEntryPreference}.
 */
public class LongPressAccessPointPreference extends AccessPointPreference {

    private final Fragment mFragment;
+3 −0
Original line number Diff line number Diff line
@@ -86,6 +86,9 @@ import java.util.stream.Collectors;
/**
 * The class for allowing UIs like {@link WifiDialog} and {@link WifiConfigUiBase} to
 * share the logic for controlling buttons, text fields, etc.
 *
 * Migrating from Wi-Fi SettingsLib to to WifiTrackerLib, this object will be removed in the near
 * future, please develop in {@link WifiConfigController2}.
 */
public class WifiConfigController implements TextWatcher,
        AdapterView.OnItemSelectedListener, OnCheckedChangeListener,
+4 −1
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@ import android.widget.Button;

/**
 * Foundation interface glues between Activities and UIs like {@link WifiDialog}.
 *
 * Migrating from Wi-Fi SettingsLib to to WifiTrackerLib, this object will be removed in the near
 * future, please develop in {@link WifiConfigUiBase2}.
 */
public interface WifiConfigUiBase {

Loading