[android] Fixed bug with parse id reporting.

This commit is contained in:
Dmitry Yunitsky 2015-09-08 14:28:39 +03:00 committed by Alex Zolotarev
parent cd5dcdc12a
commit 0d0a6e663f

View file

@ -233,7 +233,7 @@ public class MwmApplication extends android.app.Application implements ActiveCou
String newId = ParseInstallation.getCurrentInstallation().getInstallationId();
String newToken = ParseInstallation.getCurrentInstallation().getString("deviceToken");
if (previousId.equals(newId) || previousToken.equals(newToken))
if (!previousId.equals(newId) || !previousToken.equals(newToken))
{
org.alohalytics.Statistics.logEvent(AlohaHelper.PARSE_INSTALLATION_ID, newId);
org.alohalytics.Statistics.logEvent(AlohaHelper.PARSE_DEVICE_TOKEN, newToken);