Loading packages/CaptivePortalLogin/res/values/strings.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -5,6 +5,7 @@ <string name="action_use_network">Use this network as is</string> <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_do_not_use_network">Do not use this network</string> <string name="action_bar_label">Sign in to 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’re trying to join has security issues.</string> <string name="ssl_error_warning">The network you’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_example">For example, the login page may not belong to the organization shown.</string> <string name="ssl_error_continue">Continue anyway via browser</string> <string name="ssl_error_continue">Continue anyway via browser</string> Loading packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java +10 −1 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.net.ConnectivityManager; import android.net.ConnectivityManager.NetworkCallback; import android.net.ConnectivityManager.NetworkCallback; import android.net.Network; import android.net.Network; import android.net.NetworkCapabilities; import android.net.NetworkCapabilities; import android.net.NetworkInfo; import android.net.NetworkRequest; import android.net.NetworkRequest; import android.net.Proxy; import android.net.Proxy; import android.net.Uri; import android.net.Uri; Loading Loading @@ -469,8 +470,16 @@ public class CaptivePortalLoginActivity extends Activity { } } private String getHeaderTitle() { private String getHeaderTitle() { NetworkInfo info = mCm.getNetworkInfo(mNetwork); if (info == null) { return getString(R.string.action_bar_label); return getString(R.string.action_bar_label); } } NetworkCapabilities nc = mCm.getNetworkCapabilities(mNetwork); if (!nc.hasTransport(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) { private String getHeaderSubtitle(String urlString) { URL url = makeURL(urlString); URL url = makeURL(urlString); Loading Loading
packages/CaptivePortalLogin/res/values/strings.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -5,6 +5,7 @@ <string name="action_use_network">Use this network as is</string> <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_do_not_use_network">Do not use this network</string> <string name="action_bar_label">Sign in to 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’re trying to join has security issues.</string> <string name="ssl_error_warning">The network you’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_example">For example, the login page may not belong to the organization shown.</string> <string name="ssl_error_continue">Continue anyway via browser</string> <string name="ssl_error_continue">Continue anyway via browser</string> Loading
packages/CaptivePortalLogin/src/com/android/captiveportallogin/CaptivePortalLoginActivity.java +10 −1 Original line number Original line Diff line number Diff line Loading @@ -26,6 +26,7 @@ import android.net.ConnectivityManager; import android.net.ConnectivityManager.NetworkCallback; import android.net.ConnectivityManager.NetworkCallback; import android.net.Network; import android.net.Network; import android.net.NetworkCapabilities; import android.net.NetworkCapabilities; import android.net.NetworkInfo; import android.net.NetworkRequest; import android.net.NetworkRequest; import android.net.Proxy; import android.net.Proxy; import android.net.Uri; import android.net.Uri; Loading Loading @@ -469,8 +470,16 @@ public class CaptivePortalLoginActivity extends Activity { } } private String getHeaderTitle() { private String getHeaderTitle() { NetworkInfo info = mCm.getNetworkInfo(mNetwork); if (info == null) { return getString(R.string.action_bar_label); return getString(R.string.action_bar_label); } } NetworkCapabilities nc = mCm.getNetworkCapabilities(mNetwork); if (!nc.hasTransport(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) { private String getHeaderSubtitle(String urlString) { URL url = makeURL(urlString); URL url = makeURL(urlString); Loading