Create a string for private DNS "On"
The last private DNS settings screen landed in P after string freeze, which led us to reuse R.string.switch_on_text for the "on" text when private DNS is active. That string comes from notifications. Private DNS should have its own string for this instead. Bug: 79122154 Test: 1. Build pass 2. make -j44 RunSettingsRoboTests \ ROBOTEST_FILTER=PrivateDnsPreferenceControllerTest Change-Id: Ie013a858c8bc41e00a1b940d02efa2b605991685
This commit is contained in:
@@ -119,11 +119,7 @@ public class PrivateDnsPreferenceController extends BasePreferenceController
|
||||
case PRIVATE_DNS_MODE_OFF:
|
||||
return res.getString(R.string.private_dns_mode_off);
|
||||
case PRIVATE_DNS_MODE_OPPORTUNISTIC:
|
||||
// TODO (b/79122154) : create a string specifically for this, instead of
|
||||
// hijacking a string from notifications. This is necessary at this time
|
||||
// because string freeze is in the past and this string has the right
|
||||
// content at this moment.
|
||||
return dnsesResolved ? res.getString(R.string.switch_on_text)
|
||||
return dnsesResolved ? res.getString(R.string.private_dns_mode_on)
|
||||
: res.getString(R.string.private_dns_mode_opportunistic);
|
||||
case PRIVATE_DNS_MODE_PROVIDER_HOSTNAME:
|
||||
return dnsesResolved
|
||||
|
Reference in New Issue
Block a user