diff --git a/library/src/main/java/com/vwo/mobile/constants/AppConstants.java b/library/src/main/java/com/vwo/mobile/constants/AppConstants.java index 284e5eb..d29f476 100644 --- a/library/src/main/java/com/vwo/mobile/constants/AppConstants.java +++ b/library/src/main/java/com/vwo/mobile/constants/AppConstants.java @@ -47,7 +47,7 @@ public class AppConstants { public static final String USER_TYPE_NEW = "new"; public static final String USER_TYPE_RETURNING = "ret"; - public static final String DEVICE_TYPE_PHONE = "Phone"; + public static final String DEVICE_TYPE_MOBILE = "Mobile"; public static final String DEVICE_TYPE_TABLET = "Tablet"; //region Keys in Events diff --git a/library/src/main/java/com/vwo/mobile/segmentation/CustomSegmentEvaluateEnum.java b/library/src/main/java/com/vwo/mobile/segmentation/CustomSegmentEvaluateEnum.java index 5e723f8..83732ca 100644 --- a/library/src/main/java/com/vwo/mobile/segmentation/CustomSegmentEvaluateEnum.java +++ b/library/src/main/java/com/vwo/mobile/segmentation/CustomSegmentEvaluateEnum.java @@ -547,7 +547,7 @@ public boolean evaluate(VWO vwo, JSONArray data) { try { String type = data.getString(i); return isTablet && type.equalsIgnoreCase(AppConstants.DEVICE_TYPE_TABLET) || - !isTablet && type.equalsIgnoreCase(AppConstants.DEVICE_TYPE_PHONE); + !isTablet && type.equalsIgnoreCase(AppConstants.DEVICE_TYPE_MOBILE); } catch (Exception exception) { VWOLog.e(VWOLog.SEGMENTATION_LOGS, "Unable to parse device type", exception, false, false); @@ -570,7 +570,7 @@ public boolean evaluate(VWO vwo, JSONArray data) { try { String type = data.getString(i); return !isTablet && type.equalsIgnoreCase(AppConstants.DEVICE_TYPE_TABLET) || - isTablet && type.equalsIgnoreCase(AppConstants.DEVICE_TYPE_PHONE); + isTablet && type.equalsIgnoreCase(AppConstants.DEVICE_TYPE_MOBILE); } catch (Exception exception) { VWOLog.e(VWOLog.SEGMENTATION_LOGS, "Unable to parse device type", exception, false, false);