Fix infinite loop when registering data usage callback.

Trivial fix is to call the method that takes the handler as a param.

Bug: 29508547
Change-Id: I75ba30a1663be265eed56b24deda82e83fd47a43
This commit is contained in:
Antonio Cansado
2016-06-20 15:03:03 -07:00
parent bfd4e42c8d
commit 320e313d2c

View File

@@ -305,7 +305,8 @@ public class NetworkStatsManager {
*/
public void registerUsageCallback(int networkType, String subscriberId, long thresholdBytes,
UsageCallback callback) {
registerUsageCallback(networkType, subscriberId, thresholdBytes, null /* handler */);
registerUsageCallback(networkType, subscriberId, thresholdBytes, callback,
null /* handler */);
}
/**