diff --git a/ostsdk/gradle.properties b/ostsdk/gradle.properties index 9862c984..39931ea3 100644 --- a/ostsdk/gradle.properties +++ b/ostsdk/gradle.properties @@ -22,9 +22,9 @@ # org.gradle.parallel=true #Increase version when publishing. -VERSION_NAME=2.3.1-beta.1 +VERSION_NAME=2.3.1 #Increase version code when publishing. -VERSION_CODE=35 +VERSION_CODE=36 #Everything else. GROUP=com.ost diff --git a/ostsdk/src/main/java/com/ost/walletsdk/ui/managedevices/DeviceListPresenter.java b/ostsdk/src/main/java/com/ost/walletsdk/ui/managedevices/DeviceListPresenter.java index 9afa3137..917828e3 100644 --- a/ostsdk/src/main/java/com/ost/walletsdk/ui/managedevices/DeviceListPresenter.java +++ b/ostsdk/src/main/java/com/ost/walletsdk/ui/managedevices/DeviceListPresenter.java @@ -64,7 +64,6 @@ void updateDeviceList(Boolean clearList) { return; } if(clearList){ - ostDeviceList.clear(); nextPayload = new JSONObject(); } else if(!hasMoreData){ return; @@ -94,6 +93,7 @@ public void onOstJsonApiSuccess(@Nullable JSONObject dataJSONObject) { hasMoreData = (nextPayload != null && !nextPayload.toString().equals("{}")); JSONArray deviceJSONArray = (JSONArray) dataJSONObject.get(dataJSONObject.getString(OstConstants.RESULT_TYPE)); + if (clearList) ostDeviceList.clear(); for (int i = 0; i < deviceJSONArray.length(); i++) { JSONObject deviceJSONObject = deviceJSONArray.getJSONObject(i); Device device = Device.newInstance(deviceJSONObject); diff --git a/ostsdk/src/main/res/layout/ost_fragment_qr.xml b/ostsdk/src/main/res/layout/ost_fragment_qr.xml index fb379b6e..87e7fce9 100644 --- a/ostsdk/src/main/res/layout/ost_fragment_qr.xml +++ b/ostsdk/src/main/res/layout/ost_fragment_qr.xml @@ -54,11 +54,12 @@