Merge "Support to query TYPE_WIFI usage with subscriberId"
This commit is contained in:
commit
d8a067cd9e
1 changed files with 4 additions and 1 deletions
|
|
@ -644,7 +644,10 @@ public class NetworkStatsManager {
|
|||
: NetworkTemplate.buildTemplateMobileAll(subscriberId);
|
||||
break;
|
||||
case ConnectivityManager.TYPE_WIFI:
|
||||
template = NetworkTemplate.buildTemplateWifiWildcard();
|
||||
template = subscriberId == null
|
||||
? NetworkTemplate.buildTemplateWifiWildcard()
|
||||
: NetworkTemplate.buildTemplateWifi(NetworkTemplate.WIFI_NETWORKID_ALL,
|
||||
subscriberId);
|
||||
break;
|
||||
default:
|
||||
throw new IllegalArgumentException("Cannot create template for network type "
|
||||
|
|
|
|||
Loading…
Reference in a new issue