Skip to content

Commit 387bd76

Browse files
authored
E2-1893: add counters to methods we want to deprecate (#360)
1 parent c579464 commit 387bd76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

AndroidSDKCore/src/main/java/com/leanplum/Leanplum.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,6 +2231,7 @@ public static Map<String, Object> getVariantDebugInfo() {
22312231
*/
22322232
public static void setDeviceLocation(Location location) {
22332233
setDeviceLocation(location, LeanplumLocationAccuracyType.CELL);
2234+
Leanplum.countAggregator().incrementCount("setDeviceLocation");
22342235
}
22352236

22362237
/**
@@ -2246,6 +2247,7 @@ public static void setDeviceLocation(Location location, LeanplumLocationAccuracy
22462247
"call setDeviceLocation. If you prefer to always set location manually, " +
22472248
"then call disableLocationCollection.");
22482249
}
2250+
Leanplum.countAggregator().incrementCount("setDeviceLocation_type");
22492251
LeanplumInternal.setUserLocationAttribute(location, type,
22502252
new LeanplumInternal.locationAttributeRequestsCallback() {
22512253
@Override

0 commit comments

Comments
 (0)