From 609857f6240a393d8275be770dcecfc6716cee30 Mon Sep 17 00:00:00 2001 From: charitha Date: Fri, 22 Sep 2017 10:53:57 +0530 Subject: [PATCH] Fix for https://github.com/wso2/product-iots/issues/1423 --- .../android/services/impl/EventReceiverServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/EventReceiverServiceImpl.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/EventReceiverServiceImpl.java index 594ee9dac..2c012737f 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/EventReceiverServiceImpl.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/EventReceiverServiceImpl.java @@ -74,8 +74,8 @@ public class EventReceiverServiceImpl implements EventReceiverService { JsonObject jsonObject = gson.fromJson(eventPayload, JsonObject.class); Object payload[] = { jsonObject.get(TIME_STAMP).getAsLong(), - jsonObject.get(LONGITUDE).getAsDouble(), - jsonObject.get(LATITUDE).getAsDouble() + jsonObject.get(LATITUDE).getAsDouble(), + jsonObject.get(LONGITUDE).getAsDouble() }; try { if (AndroidAPIUtils.getEventPublisherService().publishEvent(