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

Commit 43e249ff authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Load internal resources using name rather than ID" into oc-dr1-dev

parents 7bef9375 7f6fc86b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1170,8 +1170,9 @@ public class AccessPoint implements Comparable<AccessPoint> {

            if (nc != null) {
                if (nc.hasCapability(nc.NET_CAPABILITY_CAPTIVE_PORTAL)) {
                    return context.getString(
                        com.android.internal.R.string.network_available_sign_in);
                    int id = context.getResources()
                            .getIdentifier("network_available_sign_in", "string", "android");
                    return context.getString(id);
                } else if (!nc.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)) {
                    return context.getString(R.string.wifi_connected_no_internet);
                }