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

Commit 002b20d2 authored by Zoey Chen's avatar Zoey Chen Committed by Android (Google) Code Review
Browse files

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

parents 3f67f225 d49ce6c3
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);