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

Commit 28754bf6 authored by SongFerng Wang's avatar SongFerng Wang Committed by Android (Google) Code Review
Browse files

Merge "Remove the second network scan." into rvc-dev

parents 7ff5f56e b7f98f76
Loading
Loading
Loading
Loading
+7 −10
Original line number Diff line number Diff line
@@ -217,16 +217,13 @@ public class NetworkSelectSettings extends DashboardFragment {
            switch (msg.what) {
                case EVENT_SET_NETWORK_SELECTION_MANUALLY_DONE:
                    final boolean isSucceed = (boolean) msg.obj;
                    if (isSucceed) {
                        // Don't enable screen here. Wait until result of network re-scan.
                        startNetworkQuery();
                    } else {
                    stopNetworkQuery();
                    setProgressBarVisible(false);
                    getPreferenceScreen().setEnabled(true);
                        // For failure case, only update the summary of selected item.
                        mSelectedPreference.setSummary(R.string.network_could_not_connect);
                    }

                    mSelectedPreference.setSummary(isSucceed
                            ? R.string.network_connected
                            : R.string.network_could_not_connect);
                    break;
                case EVENT_NETWORK_SCAN_RESULTS:
                    final List<CellInfo> results = (List<CellInfo>) msg.obj;