Ejemplo n.º 1
0
  /**
   * Sets the list of devices
   *
   * @param devices Devices
   */
  public void setDevices(List<Device> devices) {
    mDevices.clear();
    mDevices.addAll(devices);
    mSensorsListAdapter.notifyDataSetChanged();

    checkIfEmpty();
    cancelRefreshingProgress();
  }
Ejemplo n.º 2
0
 /** Clears the fragment data */
 public void clearData() {
   mDevices.clear();
   mSensorsListAdapter.notifyDataSetChanged();
 }