Merge "Add a boolean flag to show or hide Private DNS in Network & internet."
This commit is contained in:
committed by
Android (Google) Code Review
commit
fa44a94aa9
@@ -80,7 +80,9 @@ public class PrivateDnsPreferenceController extends BasePreferenceController
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return AVAILABLE;
|
||||
return mContext.getResources().getBoolean(R.bool.config_show_private_dns_settings)
|
||||
? AVAILABLE
|
||||
: UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user