Skip to content

Commit

Permalink
fix: don't sent device name if DefaultPII is disabled
Browse files Browse the repository at this point in the history
closes #2063
  • Loading branch information
vaind committed Nov 11, 2022
1 parent 51e7326 commit 1035e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -5,7 +5,7 @@ We suggest opening an issue to discuss bigger changes before investing on a big

# Requirements

The project currently requires you run JDK 11.
The project currently requires you run JDK 17.

## Android

Expand Down
Expand Up @@ -94,7 +94,7 @@ public DefaultAndroidEventProcessor(

ExecutorService executorService = Executors.newSingleThreadExecutor();
// dont ref. to method reference, theres a bug on it
contextData = executorService.submit(() -> loadContextData());
contextData = executorService.submit(this::loadContextData);

executorService.shutdown();
}
Expand Down Expand Up @@ -282,7 +282,9 @@ private void setArchitectures(final @NotNull Device device) {
// TODO: missing usable memory

Device device = new Device();
device.setName(getDeviceName());
if (!options.isSendDefaultPii()) {
device.setName(getDeviceName());
}
device.setManufacturer(Build.MANUFACTURER);
device.setBrand(Build.BRAND);
device.setFamily(getFamily());
Expand Down

0 comments on commit 1035e1c

Please sign in to comment.