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

Commit d49ce6c3 authored by Zoey Chen's avatar Zoey Chen
Browse files

[Provider Model] Should not show pwd dialog if it is a saved Wi-Fi entry

Bug: 192818895
Test: atest InternetAdapterTest
Change-Id: I28d52f253ded919128a7a9aa941c405cbd1aab5e
parent 315c8ee2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -174,10 +174,7 @@ public class InternetAdapter extends RecyclerView.Adapter<InternetAdapter.Intern
                    Html.fromHtml(wifiEntry.getSummary(false), Html.FROM_HTML_MODE_LEGACY));

            mWifiListLayout.setOnClickListener(v -> {
                if (!isOpenNetwork(security)) {
                    // Popup Wi-Fi password dialog condition:
                    // 1. The access point is a non-open network.
                    // 2. The Wi-Fi connection is not connected with this access point.
                if (wifiEntry.shouldEditBeforeConnect()) {
                    final Intent intent = new Intent(ACTION_WIFI_DIALOG);
                    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                    intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);