Skip to content

Commit

Permalink
Fix for the new segment crash on upgrade. [ref #109196952]
Browse files Browse the repository at this point in the history
  • Loading branch information
zafrani committed Nov 30, 2015
1 parent fa8db9d commit 33d4e1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/src/main/java/is/hello/sense/util/Analytics.java
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,17 @@ public static void trackRegistration(@Nullable String accountId, @Nullable final
trackUserIdentifier(accountId);
}

public static void trackSignIn(@NonNull final String accountId, @Nullable final String name, @Nullable final String email) {
public static void trackSignIn(@NonNull final String accountId, @Nullable String name, @Nullable String email) {
if (context == null){
return;
}
if (name == null) {
name = "";
}
if (email == null) {
email = "";
}

com.segment.analytics.Analytics.with(context).identify(accountId);
Analytics.trackEvent(Analytics.Global.EVENT_SIGNED_IN, null);

Expand Down

0 comments on commit 33d4e1e

Please sign in to comment.