Call getDataSaverEnabled from isUidNetworkingBlocked
This reduces unnecessary bpf map read Bug: 328732146 Test: TH Change-Id: I7652bee99c1d733bae38508d7d6092c90678dc42
This commit is contained in:
parent
7bfcd30e89
commit
e1d536ba8a
1 changed files with 33 additions and 16 deletions
|
|
@ -6293,7 +6293,7 @@ public class ConnectivityManager {
|
|||
// the status is not synchronized.
|
||||
// On V+, the data saver status is set by platform code when enabling/disabling
|
||||
// data saver, which is synchronized.
|
||||
return reader.isUidNetworkingBlocked(uid, isNetworkMetered, reader.getDataSaverEnabled());
|
||||
return reader.isUidNetworkingBlocked(uid, isNetworkMetered);
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
|
|
|
|||
Loading…
Reference in a new issue