Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions posthog/src/main/java/com/posthog/android/PostHog.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,11 @@ public String getAnonymousId() {
return properties.anonymousId();
}

public String getDistinctId() {
Properties properties = propertiesCache.get();
return properties.distinctId();
}

/** Creates a {@link StatsSnapshot} of the current stats for this instance. */
public StatsSnapshot getSnapshot() {
return stats.createSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void onActivityCreated(Activity activity, Bundle bundle) {
}

Intent intent = activity.getIntent();
if (intent == null || intent.getData() == null) {
if (intent == null || intent.getData() == null || !intent.getData().isHierarchical()) {
return;
}

Expand Down