@Override public void onDatastoreStatusChange(DbxDatastore dbxDatastore) { if (dbxDatastore.getSyncStatus().hasIncoming) { try { dbxDatastore.sync(); } catch (DbxException e) { e.printStackTrace(); } updateLevel(); } }