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

Commit ef0884f2 authored by Hugo Benichi's avatar Hugo Benichi
Browse files

Revert "Captive portal login shows specific network name"

This reverts commit 8032ff32.

Several branches are broken because of this.

Change-Id: I2d9f8b1cc8f93ed8de7d1e01d49c7cd29417820d
parent 8032ff32
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
    <string name="action_use_network">Use this network as is</string>
    <string name="action_do_not_use_network">Do not use this network</string>
    <string name="action_bar_label">Sign in to network</string>
    <string name="action_bar_title">Sign in to %1$s</string>
    <string name="ssl_error_warning">The network you&#8217;re trying to join has security issues.</string>
    <string name="ssl_error_example">For example, the login page may not belong to the organization shown.</string>
    <string name="ssl_error_continue">Continue anyway via browser</string>
+1 −10
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import android.net.ConnectivityManager;
import android.net.ConnectivityManager.NetworkCallback;
import android.net.Network;
import android.net.NetworkCapabilities;
import android.net.NetworkInfo;
import android.net.NetworkRequest;
import android.net.Proxy;
import android.net.Uri;
@@ -470,16 +469,8 @@ public class CaptivePortalLoginActivity extends Activity {
    }

    private String getHeaderTitle() {
        NetworkInfo info = mCm.getNetworkInfo(mNetwork);
        if (info == null) {
        return getString(R.string.action_bar_label);
    }
        NetworkCapabilities nc = mCm.getNetworkCapabilities(mNetwork);
        if (!nc.hasTransportType(NetworkCapabilities.TRANSPORT_WIFI)) {
            return getString(R.string.action_bar_label);
        }
        return getString(R.string.action_bar_title, info.getExtraInfo().replaceAll("^\"|\"$", ""));
    }

    private String getHeaderSubtitle(String urlString) {
        URL url = makeURL(urlString);