/** * Sets the list of devices * * @param devices Devices */ public void setDevices(List<Device> devices) { mDevices.clear(); mDevices.addAll(devices); mSensorsListAdapter.notifyDataSetChanged(); checkIfEmpty(); cancelRefreshingProgress(); }
/** Clears the fragment data */ public void clearData() { mDevices.clear(); mSensorsListAdapter.notifyDataSetChanged(); }