Skip to content

Commit

Permalink
fix: rename (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray authored Dec 15, 2023
1 parent 2ce93de commit 90debc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions sdk-java/src/main/java/ly/count/sdk/java/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -1509,11 +1509,7 @@ public Config setLocation(String countryCode, String cityName, String gpsCoordin
*
* @return {@code this} instance for method chaining
*/
public Config setDisableLocation() {
country = null;
city = null;
location = null;
ip = null;
public Config disableLocation() {
locationEnabled = false;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void setLocation_notBeganSession_withConfig() throws InterruptedException
public void disableLocation_notBeganSession_withConfig() {
Countly.instance().init(TestUtils.getBaseConfig().setFeatures(Config.Feature.Location, Config.Feature.Sessions)
.setLocation("US", "New York", "1,2", "1.1.1.1")
.setDisableLocation());
.disableLocation());
validateLocationRequestInRQ(UserEditorTests.map("location", ""), 0);
Countly.session().begin();
validateLocationRequestInRQ(UserEditorTests.map("location", "", "begin_session", "1"), 1);
Expand Down

0 comments on commit 90debc3

Please sign in to comment.