Fix the marking of restricted network requests
Need to realized that the NOT_RESTRICTED bit is set by default, so if looking at what bits are set to decide if we want NOT_RESTRICTED cleared, we need to ignore the bit itself. bug:15456019 Change-Id: Iecae598f47ec7306d475e2262bb1c452ddf0fc75
This commit is contained in:
@@ -892,6 +892,7 @@ public class ConnectivityManager {
|
||||
case NetworkCapabilities.NET_CAPABILITY_IMS:
|
||||
case NetworkCapabilities.NET_CAPABILITY_RCS:
|
||||
case NetworkCapabilities.NET_CAPABILITY_XCAP:
|
||||
case NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED: //there by default
|
||||
continue;
|
||||
default:
|
||||
// At least one capability usually provided by unrestricted
|
||||
|
||||
Reference in New Issue
Block a user