Skip to content

Commit

Permalink
Merge pull request #253 from hello/dz/more_segment_fixes
Browse files Browse the repository at this point in the history
Fix for the new segment crash on upgrade. [ref #109196952]
  • Loading branch information
jimmymlu committed Nov 30, 2015
2 parents fa8db9d + 33d4e1e commit e52b470
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 e52b470

Please sign in to comment.