Skip to content

Commit

Permalink
Merge pull request #2 from PostHog/screen-fix
Browse files Browse the repository at this point in the history
Bugfix: fix screen event name back to screen and change key to screen…
  • Loading branch information
mariusandra authored Jul 9, 2020
2 parents 979b470 + e2d0569 commit 4e284e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.1 - 2020-07-09

- Fix a bug where the name of the event changed to `$screen` instead of the key for the event screen

## 1.1.0 - 2020-07-08

- Use `$screen_name` instead of `$screen` as key for what screen you are on when sending a .screen event
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GROUP=com.posthog.android

VERSION_CODE=3
VERSION_NAME=1.1.1-SNAPSHOT
VERSION_NAME=1.1.1

POM_NAME=PostHog for Android
POM_DESCRIPTION=The hassle-free way to add posthog to your Android app.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

public class ScreenPayload extends BasePayload {

static final String NAME_KEY = "$screen";
static final String NAME_KEY = "$screen_name";

@Private
ScreenPayload(
Expand All @@ -49,7 +49,7 @@ public class ScreenPayload extends BasePayload {
@Nullable String distinctId,
@Nullable String name) {

super(Type.screen, "$screen_name", messageId, timestamp, properties, distinctId);
super(Type.screen, "$screen", messageId, timestamp, properties, distinctId);

if (!isNullOrEmpty(name)) {
properties.put(NAME_KEY, name);
Expand Down

0 comments on commit 4e284e0

Please sign in to comment.